public class TaskCoordinator extends Object implements Cancelable, org.neo4j.function.Factory<TaskControl>
TaskControl instances that need to be waited on and potentially
cancelled en mass. Instances of TaskControl acquired through the newInstance() method can be
notified of cancellation with the semantics of CancellationRequest.| Constructor and Description |
|---|
TaskCoordinator(long sleepTime,
TimeUnit sleepUnit) |
| Modifier and Type | Method and Description |
|---|---|
void |
awaitCompletion() |
void |
cancel() |
TaskControl |
newInstance() |
public TaskCoordinator(long sleepTime,
TimeUnit sleepUnit)
public void cancel()
cancel in interface Cancelablepublic void awaitCompletion()
throws InterruptedException
InterruptedExceptionpublic TaskControl newInstance()
newInstance in interface org.neo4j.function.Factory<TaskControl>Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.