C - the type of context that the module persists in Neo4j between runs.public interface TimerDrivenModule<C extends TimerDrivenModuleContext> extends RuntimeModule
RuntimeModule that can be driven by a timing strategy as opposed to a response to transaction
events.| Modifier and Type | Method and Description |
|---|---|
C |
createInitialContext(org.neo4j.graphdb.GraphDatabaseService database)
Create the initial context for this module, when no previously produced context is available.
|
C |
doSomeWork(C lastContext,
org.neo4j.graphdb.GraphDatabaseService database)
Perform the work which is the reason for this module's existence.
|
TimerDrivenModuleConfiguration |
getConfiguration()
Return the configuration of this module.
|
getId, shutdownC createInitialContext(org.neo4j.graphdb.GraphDatabaseService database)
database - against which the module is running.C doSomeWork(C lastContext, org.neo4j.graphdb.GraphDatabaseService database)
lastContext - context produced by the last run of this method.database - against which the module is running.TimerDrivenModuleConfiguration getConfiguration()
TimerDrivenModuleConfiguration implementation. Use NullTimerDrivenModuleConfiguration
if this module needs no configuration.Copyright © 2013-2016–2018 Graph Aware Limited. All rights reserved.