com.sun.jini.outrigger
Interface Transactable

All Superinterfaces:
TransactionConstants
All Known Implementing Classes:
ConsumingWatcher, EntryHandle, TakeIfExistsWatcher, TakeMultipleWatcher, TransactableAvailabilityWatcher, TransactableEventWatcher, TransactableReadIfExistsWatcher

interface Transactable
extends TransactionConstants

This interface is implemented by objects that represent operations undertaken under a transaction. These objects are governed by a TransactableMgr object that manages the overall transaction's state in this space. The set of Transactable objects managed by a TransactableMgr object constitute the set of operations made under the transaction.

Author:
Sun Microsystems, Inc.
See Also:
TransactableMgr

Field Summary
 
Fields inherited from interface net.jini.core.transaction.server.TransactionConstants
ABORTED, ACTIVE, COMMITTED, NOTCHANGED, PREPARED, VOTING
 
Method Summary
 void abort(TransactableMgr mgr, OutriggerServerImpl space)
          Abort this object's part of the transaction.
 void commit(TransactableMgr mgr, OutriggerServerImpl space)
          Commit this object's part of the transaction.
 int prepare(TransactableMgr mgr, OutriggerServerImpl space)
          Prepare to commit this object's part of the transaction.
 

Method Detail

prepare

int prepare(TransactableMgr mgr,
            OutriggerServerImpl space)
Prepare to commit this object's part of the transaction. Return the prepare's status.


commit

void commit(TransactableMgr mgr,
            OutriggerServerImpl space)
Commit this object's part of the transaction. The space is the OutriggerServerImpl on which the operation happens -- some commit operations have space-wide side effects (for example, a commit of a write operation can cause event notifications for clients registered under the transaction's parent).


abort

void abort(TransactableMgr mgr,
           OutriggerServerImpl space)
Abort this object's part of the transaction.



Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.