public interface UpdatePuller
On a running instance of a store there should be only one active implementation of this interface.
SlaveUpdatePuller,
MasterUpdatePuller| Modifier and Type | Interface and Description |
|---|---|
static interface |
UpdatePuller.Condition
Condition to be meet during update pulling.
|
| 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
|
void pullUpdates()
throws InterruptedException
InterruptedException - in case if interrupted while waiting for updatesboolean tryPullUpdates()
throws InterruptedException
InterruptedException - in case if interrupted while waiting for updatesvoid start()
void stop()
void pullUpdates(UpdatePuller.Condition condition, boolean assertPullerActive) throws InterruptedException
condition - 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.IllegalStateException - if strictlyAssertActive and the update puller
became inactive while awaiting the condition.Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.