private class IdentityPool.IdentityContext extends java.lang.Object implements Commitable
| Modifier and Type | Field and Description |
|---|---|
private java.util.Set<java.lang.Long> |
localKeysHandedOut
Keys handed out for this context.
|
| Modifier | Constructor and Description |
|---|---|
private |
IdentityContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
commit(boolean transaction)
Called by TransactionManager after the "master" commit was performed.
|
void |
keyHandedOut(java.lang.Long key)
Informs the IdentityContext that we hand out one more key for it.
|
void |
rollback(boolean transaction)
Called by TransactionManager after the "master" rollback was
performed.
|
void |
validate(boolean transaction,
boolean aggressiveFlush)
No-op
|
private java.util.Set<java.lang.Long> localKeysHandedOut
public void keyHandedOut(java.lang.Long key)
key - Handed out key.public void commit(boolean transaction)
commit in interface Commitabletransaction - Always true.public void rollback(boolean transaction)
rollback in interface Commitabletransaction - Always true.public void validate(boolean transaction,
boolean aggressiveFlush)
validate in interface Commitabletransaction - true if this is a full transaction and
false if this is only a sub-transaction (a
nested scope with transaction support).aggressiveFlush - true if transaction manager is in aggressive subtransaction
flush mode, indicating that any transient buffers should be validated and
flushed, regardless of other state.