public abstract class WriterBasedThirdPartyIntegrationModule<ID> extends ThirdPartyIntegrationModule<ID>
ThirdPartyIntegrationModule that integrates with the third-party system by using a ThirdPartyWriter.| Modifier | Constructor and Description |
|---|---|
protected |
WriterBasedThirdPartyIntegrationModule(String moduleId,
ThirdPartyWriter writer)
Construct a new module.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterCommit(Collection<WriteOperation<?>> state)
Perform the core business logic of this module after a transaction commits.
|
void |
shutdown() |
void |
start(org.neo4j.graphdb.GraphDatabaseService database)
Start the module.
|
beforeCommit, nodeRepresentation, relationshipRepresentationafterRollback, getConfiguration, initialize, reinitializegetIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIdprotected WriterBasedThirdPartyIntegrationModule(String moduleId, ThirdPartyWriter writer)
moduleId - ID of this module. Must not be null or empty.writer - to use for integrating with third-party system. Must not be null.public void afterCommit(Collection<WriteOperation<?>> state)
afterCommit in interface TxDrivenModule<Collection<WriteOperation<?>>>afterCommit in class BaseTxDrivenModule<Collection<WriteOperation<?>>>state - returned by TxDrivenModule.beforeCommit(com.graphaware.tx.event.improved.api.ImprovedTransactionData). Will
be null if TxDrivenModule.beforeCommit(com.graphaware.tx.event.improved.api.ImprovedTransactionData)
threw an exception but the transaction still committed. This is the case for all exceptions except DeliberateTransactionRollbackException.public void start(org.neo4j.graphdb.GraphDatabaseService database)
start in interface TxDrivenModule<Collection<WriteOperation<?>>>start in class BaseTxDrivenModule<Collection<WriteOperation<?>>>database - to start this module against.public void shutdown()
Note that the implementation in this base class doesn't do anything and can be safely overridden without calling super.
shutdown in interface RuntimeModuleshutdown in class BaseTxDrivenModule<Collection<WriteOperation<?>>>Copyright © 2013-2016–2018 Graph Aware Limited. All rights reserved.