T - type of the position representation.public interface TimerDrivenModuleContext<T>
TimerDrivenModules encapsulating the position in the graph and additional
data, such as weight carried around for certain iterative algorithms, etc.
The position in the graph could be a single node, a collection of nodes, a single relationship, a collection of relationships, a cluster of nodes and relationships, etc.
| Modifier and Type | Field and Description |
|---|---|
static long |
ASAP |
| Modifier and Type | Method and Description |
|---|---|
long |
earliestNextCall()
Get the earliest time the
TimerDrivenModule wishes to be called again. |
T |
find(org.neo4j.graphdb.GraphDatabaseService database)
Find the position in the database.
|
static final long ASAP
long earliestNextCall()
TimerDrivenModule wishes to be called again.
Modules that want to be called as often as possible should return ASAP.T find(org.neo4j.graphdb.GraphDatabaseService database) throws PositionNotFoundException
database - The GraphDatabaseService in which to find the position.PositionNotFoundException - if the position could not be found. Callers must handle this.Copyright © 2013-2016–2018 Graph Aware Limited. All rights reserved.