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 |
rollbackPending()
No-op.
|
void |
validate(boolean transaction)
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 Commitable
transaction
- Always true.public void rollback(boolean transaction)
rollback
in interface Commitable
transaction
- Always true.public void rollbackPending()
rollbackPending
in interface Commitable
public void validate(boolean transaction)
validate
in interface Commitable
transaction
- true
if this is a full transaction and
false
if this is only a sub-transaction (a
nested scope with transaction support).