public class PeriodicDeltaChangeListener extends java.lang.Object implements ChangeListener
NOOP
Constructor and Description |
---|
PeriodicDeltaChangeListener(ExecutionContext executionContext,
BrooklynMementoPersister persister,
PersistenceExceptionHandler exceptionHandler,
PersistenceActivityMetrics metrics,
Duration period) |
Modifier and Type | Method and Description |
---|---|
PersistenceExceptionHandler |
getExceptionHandler() |
void |
onChanged(BrooklynObject instance) |
void |
onManaged(BrooklynObject instance) |
void |
onUnmanaged(BrooklynObject instance) |
boolean |
persistNowSafely() |
void |
start() |
void |
waitForPendingComplete(Duration timeout,
boolean canTrigger)
Waits for any in-progress writes to be completed then for or any unwritten data to be written.
|
public PeriodicDeltaChangeListener(ExecutionContext executionContext, BrooklynMementoPersister persister, PersistenceExceptionHandler exceptionHandler, PersistenceActivityMetrics metrics, Duration period)
public void start()
public void waitForPendingComplete(Duration timeout, boolean canTrigger) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
java.lang.InterruptedException
java.util.concurrent.TimeoutException
public boolean persistNowSafely()
public void onManaged(BrooklynObject instance)
onManaged
in interface ChangeListener
public void onUnmanaged(BrooklynObject instance)
onUnmanaged
in interface ChangeListener
public void onChanged(BrooklynObject instance)
onChanged
in interface ChangeListener
public PersistenceExceptionHandler getExceptionHandler()