public class MasterUpdatePuller extends Object implements UpdatePuller
UpdatePuller.Condition| Modifier and Type | Field and Description |
|---|---|
static MasterUpdatePuller |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
pullUpdates()
Pull all available updates.
|
void |
pullUpdates(UpdatePuller.Condition condition,
boolean assertPullerActive)
Pull updates and waits for the supplied condition to be
fulfilled as part of the update pulling happening.
|
void |
start()
Start update pulling
|
void |
stop()
Terminate update pulling
|
boolean |
tryPullUpdates()
Try to pull all updates
|
public static final MasterUpdatePuller INSTANCE
public void start()
UpdatePullerstart in interface UpdatePullerpublic void stop()
UpdatePullerstop in interface UpdatePullerpublic void pullUpdates()
throws InterruptedException
UpdatePullerpullUpdates in interface UpdatePullerInterruptedException - in case if interrupted while waiting for updatespublic boolean tryPullUpdates()
throws InterruptedException
UpdatePullertryPullUpdates in interface UpdatePullerInterruptedException - in case if interrupted while waiting for updatespublic void pullUpdates(UpdatePuller.Condition condition, boolean assertPullerActive) throws InterruptedException
UpdatePullerpullUpdates in interface UpdatePullercondition - UpdatePuller.Condition to wait for.assertPullerActive - if true then observing an inactive update puller
will throw an IllegalStateException,InterruptedException - if we were interrupted while awaiting the condition.Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.