It will queue operations (Commands), filter read operations on the cache (as for
returning null on a get on a "to be removed" key).
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private final ConcurrentMap | |
| private final Map | |
| private static final Logger | |
| private final Set | |
| private int | |
| private final Store |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addCommand(final Command
Command to be deferred command, final Element Element the command impacts, may be null element)Add a command to the current LocalTransactionContext |
| public Element | |
| public Collection | Returns: true if key is pending removalQueries the local tx context, whether the key is pending removal |
| public List | |
| public Collection | |
| public int | Returns: the modifier to be applied on thenet.The underlying store's size modifier. |
| public boolean | |
| public String |
| addedKeys | back to summary |
|---|---|
| private final Set<Object> addedKeys | |
| commandElements | back to summary |
|---|---|
| private final ConcurrentMap<Object, Element> commandElements | |
| commands | back to summary |
|---|---|
| private final Map<Object, Command> commands | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| removedKeys | back to summary |
|---|---|
| private final Set<Object> removedKeys | |
| sizeModifier | back to summary |
|---|---|
| private int sizeModifier | |
| underlyingStore | back to summary |
|---|---|
| private final Store underlyingStore | |
| XATransactionContext | back to summary |
|---|---|
| public XATransactionContext(Store underlyingStore) Constructor
| |
| addCommand | back to summary |
|---|---|
| public void addCommand(final Command command, final Element element) Add a command to the current LocalTransactionContext | |
| get | back to summary |
|---|---|
| public Element get(Object key) Filter to get operations on underlying Store. Should the key still be transaction local, or locally pending deletion | |
| getAddedKeys | back to summary |
|---|---|
| public Collection Queries the local tx context, whether the key is pending removal
| |
| getCommands | back to summary |
|---|---|
| public List All ordered pending commands | |
| getRemovedKeys | back to summary |
|---|---|
| public Collection getter to all keys pending deletion from the store
| |
| getSizeModifier | back to summary |
|---|---|
| public int getSizeModifier() The underlying store's size modifier. Plus all pending put commands, and minus all pending removals (dependent on whether their in the underlying store)
| |
| isRemoved | back to summary |
|---|---|
| public boolean isRemoved(Object key) Queries the local tx context, whether the key is pending removal
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |