public interface TimingStrategy
| Modifier and Type | Field and Description |
|---|---|
static int |
NEVER_RUN |
static int |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(org.neo4j.graphdb.GraphDatabaseService database)
Initialize the timing strategy before it can be used.
|
long |
nextDelay(long lastTaskDuration)
Get the delay until the timer fires again.
|
static final int UNKNOWN
static final int NEVER_RUN
void initialize(org.neo4j.graphdb.GraphDatabaseService database)
database - against which the runtime using this strategy runs.long nextDelay(long lastTaskDuration)
lastTaskDuration - The total time it took to execute the last task in milliseconds. -1 if unknown.Copyright © 2013-2016–2018 Graph Aware Limited. All rights reserved.