|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransactionContext
A context that contains information pertaining to a given transaction. These contexts typically have the lifespan of the entire transaction.
InvocationContext
Method Summary | |
---|---|
void |
addDummyEntryCreatedByCacheLoader(Object key)
Adds a key to the list of uninitialized entry keys created by the cache loader. |
void |
addLocalModification(WriteCommand command)
Adds a modification to the local modification list. |
void |
addModification(WriteCommand command)
Adds a modification to the modification list. |
void |
addRemovedEntry(Object key)
Adds the key that has been removed in the scope of the current transaction. |
void |
addTransactionParticipants(Collection<Address> addresses)
Adds a transaction participant. |
List<Object> |
getDummyEntriesCreatedByCacheLoader()
|
GlobalTransaction |
getGobalTransaction()
|
List<WriteCommand> |
getLocalModifications()
Returns all modifications that have been invoked with the LOCAL cache mode option. |
List<WriteCommand> |
getModifications()
Returns all modifications. |
List<Object> |
getRemovedEntries()
Gets the list of removed keys. |
Transaction |
getTransaction()
Returns a local transaction associated with this context. |
Set<Address> |
getTransactionParticipants()
Retrieves a set of Addresses of caches participating in a given transaction for a specific cache. |
boolean |
hasAnyModifications()
|
boolean |
hasLocalModifications()
|
boolean |
hasModifications()
|
boolean |
isForceAsyncReplication()
Gets the value of the forceAsyncReplication flag. |
boolean |
isForceSyncReplication()
Gets the value of the forceSyncReplication flag. |
void |
reset()
Cleans up internal state, freeing up references. |
void |
setForceAsyncReplication(boolean forceAsyncReplication)
Sets the value of the forceAsyncReplication flag. |
void |
setForceSyncReplication(boolean forceSyncReplication)
Sets the value of the forceSyncReplication flag. |
void |
setGlobalTransaction(GlobalTransaction gtx)
|
void |
setTransaction(Transaction tx)
Sets the local transaction to be associated with this transaction context. |
Methods inherited from interface org.infinispan.context.EntryLookup |
---|
clearLookedUpEntries, getLookedUpEntries, hasLockedKey, isContainsLocks, isContainsModifications, lookupEntry, putLookedUpEntries, putLookedUpEntry, removeLookedUpEntry, setContainsLocks, setContainsModifications |
Methods inherited from interface org.infinispan.context.FlagContainer |
---|
getFlags, hasFlag, isFlagsUninitialized, resetFlags, setFlags, setFlags |
Method Detail |
---|
void addModification(WriteCommand command)
command
- modificationList<WriteCommand> getModifications()
void addLocalModification(WriteCommand command)
command
- command to add to list. Should not be null.
NullPointerException
- if the command to be added is null.List<WriteCommand> getLocalModifications()
void addRemovedEntry(Object key)
key
- key that has been removed.
NullPointerException
- if the key is null.List<Object> getRemovedEntries()
void setTransaction(Transaction tx)
tx
- JTA transaction to associate with.void setGlobalTransaction(GlobalTransaction gtx)
Transaction getTransaction()
boolean isForceAsyncReplication()
void setForceAsyncReplication(boolean forceAsyncReplication)
forceAsyncReplication
- value of forceAsyncReplicationboolean isForceSyncReplication()
void setForceSyncReplication(boolean forceSyncReplication)
forceSyncReplication
- value of forceSyncReplicationvoid addDummyEntryCreatedByCacheLoader(Object key)
key
- key to add. Must not be null.List<Object> getDummyEntriesCreatedByCacheLoader()
boolean hasModifications()
boolean hasLocalModifications()
boolean hasAnyModifications()
void reset()
GlobalTransaction getGobalTransaction()
Set<Address> getTransactionParticipants()
void addTransactionParticipants(Collection<Address> addresses)
addresses
- address to add
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |