public class TranslogService.TranslogBasedFlush extends AbstractRunnable
| Constructor and Description |
|---|
TranslogService.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, runpublic void onFailure(Throwable t)
AbstractRunnableAbstractRunnable.doRun()onFailure in class AbstractRunnablepublic void onRejection(Throwable t)
AbstractRunnableAbstractRunnable.onFailure(Throwable)onRejection in class AbstractRunnableprotected void doRun()
throws Exception
AbstractRunnableRunnable.run()doRun in class AbstractRunnableInterruptedException - if the run method throws an InterruptedExceptionExceptionpublic boolean maybeFlushAndReschedule()
Copyright © 2009–2017. All rights reserved.