com.sun.sgs.impl.service.data.store
Interface DataStoreImpl.TxnInfoTable<T>

Type Parameters:
T - the type of information stored for each transaction
Enclosing class:
DataStoreImpl

protected static interface DataStoreImpl.TxnInfoTable<T>

Records information about all active transactions.


Method Summary
 T get(Transaction txn)
          Returns the information associated with the transaction, or null if none is found.
 T remove(Transaction txn)
          Removes the information associated with the transaction.
 void set(Transaction txn, T info)
          Sets the information associated with the transaction, which should not currently have associated information.
 

Method Detail

get

T get(Transaction txn)
Returns the information associated with the transaction, or null if none is found.

Parameters:
txn - the transaction
Returns:
the associated information, or null if none is found
Throws:
TransactionNotActiveException - if the implementation determines that the transaction is no longer active
IllegalStateException - if the implementation determines that the specified transaction does not match the current context

remove

T remove(Transaction txn)
Removes the information associated with the transaction.

Parameters:
txn - the transaction
Returns:
the previously associated information
Throws:
IllegalStateException - if the transaction is not active, or if the implementation determines that the specified transaction does not match the current context

set

void set(Transaction txn,
         T info)
Sets the information associated with the transaction, which should not currently have associated information.

Parameters:
txn - the transaction
info - the associated information

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved