public class TranslogService.TranslogBasedFlush extends AbstractRunnable
Constructor and Description |
---|
TranslogBasedFlush() |
Modifier and Type | Method and Description |
---|---|
protected void |
doRun()
This method has the same semantics as
Runnable.run() |
boolean |
maybeFlushAndReschedule()
checks if we need to flush and reschedules a new check.
|
void |
onFailure(Throwable t)
This method is invoked for all exception thrown by
AbstractRunnable.doRun() |
void |
onRejection(Throwable t)
This should be executed if the thread-pool executing this action rejected the execution.
|
isForceExecution, onAfter, run
public void onFailure(Throwable t)
AbstractRunnable
AbstractRunnable.doRun()
onFailure
in class AbstractRunnable
public void onRejection(Throwable t)
AbstractRunnable
AbstractRunnable.onFailure(Throwable)
onRejection
in class AbstractRunnable
protected void doRun() throws Exception
AbstractRunnable
Runnable.run()
doRun
in class AbstractRunnable
InterruptedException
- if the run method throws an InterruptedExceptionException
public boolean maybeFlushAndReschedule()
Copyright © 2009–2016. All rights reserved.