|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TransactionInterceptor
A TransactionInterceptor has the opportunity to perform a check on a
transaction before it touches the store and logical log, potentially
interrupting the process by throwing an exception. The initial idea
around this functionality was a consistency checking implementation but
any sort of run over the commands that comprise the transaction can be
done. Extending CommandRecordVisitor enables for visiting all
the records in the transaction and perform whatever work is necessary.
TransactionInterceptors are instantiated by
TransactionInterceptorProviders and are possible to form a chain
of responsibility.
| Method Summary | |
|---|---|
void |
complete()
The main work method, supposed to be called by users when the whole required set of Commands has been met. |
void |
setCommitEntry(LogEntry.Commit entry)
Set, if available, the log commit entry for this transaction. |
void |
setStartEntry(LogEntry.Start entry)
Set, if available, the log start entry for this transaction. |
| Methods inherited from interface org.neo4j.kernel.impl.nioneo.xa.CommandRecordVisitor |
|---|
visitNode, visitProperty, visitPropertyIndex, visitRelationship, visitRelationshipType |
| Method Detail |
|---|
void complete()
void setStartEntry(LogEntry.Start entry)
entry - The start log entry for this transactionvoid setCommitEntry(LogEntry.Commit entry)
entry - The commit log entry for this transaction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||