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) |
void |
persistNow() |
void |
start() |
void |
waitForPendingComplete(Duration timeout) |
void |
waitForPendingComplete(long timeout,
java.util.concurrent.TimeUnit unit)
Deprecated.
since 0.7.0, use
waitForPendingComplete(Duration) |
public PeriodicDeltaChangeListener(ExecutionContext executionContext, BrooklynMementoPersister persister, PersistenceExceptionHandler exceptionHandler, PersistenceActivityMetrics metrics, Duration period)
public void start()
public void waitForPendingComplete(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
waitForPendingComplete(Duration)
java.lang.InterruptedException
java.util.concurrent.TimeoutException
public void waitForPendingComplete(Duration timeout) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
java.lang.InterruptedException
java.util.concurrent.TimeoutException
public void persistNow()
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()