public class TcpTransport.ScheduledPing extends AbstractLifecycleRunnable
| Constructor and Description |
|---|
ScheduledPing() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doRunInLifecycle()
Perform runnable logic, but only if the
AbstractLifecycleRunnable.lifecycle is not stopped or closed. |
long |
getFailedPings() |
long |
getSuccessfulPings() |
protected void |
onAfterInLifecycle()
This method is invoked in the finally block of the run method, but it is only executed if the
AbstractLifecycleRunnable.lifecycle is not
stopped or closed. |
void |
onFailure(java.lang.Exception e)
This method is invoked for all exception thrown by
AbstractRunnable.doRun() |
doRun, onAfterisForceExecution, onRejection, runprotected void doRunInLifecycle()
throws java.lang.Exception
AbstractLifecycleRunnableAbstractLifecycleRunnable.lifecycle is not stopped or closed.doRunInLifecycle in class AbstractLifecycleRunnablejava.lang.InterruptedException - if the run method throws an InterruptedExceptionjava.lang.Exceptionpublic long getSuccessfulPings()
public long getFailedPings()
protected void onAfterInLifecycle()
AbstractLifecycleRunnableAbstractLifecycleRunnable.lifecycle is not
stopped or closed.
This method is most useful for rescheduling the next iteration of the current runnable.
onAfterInLifecycle in class AbstractLifecycleRunnablepublic void onFailure(java.lang.Exception e)
AbstractRunnableAbstractRunnable.doRun()onFailure in class AbstractRunnable