public interface UpdatePuller
On a running instance of a store there should be only one active implementation of this interface.
Typically master instance should use NONE implementation since master is owner of data in cluster env
and its up to slaves to pull updates.
SlaveUpdatePuller| Modifier and Type | Interface and Description |
|---|---|
static interface |
UpdatePuller.Condition
Condition to be meet during update pulling.
|
| Modifier and Type | Field and Description |
|---|---|
static UpdatePuller |
NONE |
| 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.
|
boolean |
tryPullUpdates()
Try to pull all updates
|
static final UpdatePuller NONE
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 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–2016 The Neo4j Graph Database Project. All rights reserved.