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, onAfter
isForceExecution, onRejection, run
protected void doRunInLifecycle() throws java.lang.Exception
AbstractLifecycleRunnable
AbstractLifecycleRunnable.lifecycle
is not stopped or closed.doRunInLifecycle
in class AbstractLifecycleRunnable
java.lang.InterruptedException
- if the run method throws an InterruptedException
java.lang.Exception
public long getSuccessfulPings()
public long getFailedPings()
protected void onAfterInLifecycle()
AbstractLifecycleRunnable
AbstractLifecycleRunnable.lifecycle
is not
stopped or closed.
This method is most useful for rescheduling the next iteration of the current runnable.
onAfterInLifecycle
in class AbstractLifecycleRunnable
public void onFailure(java.lang.Exception e)
AbstractRunnable
AbstractRunnable.doRun()
onFailure
in class AbstractRunnable