public class POBTimeoutHandler
extends java.lang.Object
start(long) to cancel existing delay you can use
cancel()| Modifier and Type | Class and Description |
|---|---|
static interface |
POBTimeoutHandler.POBTimeoutHandlerListener
Interface definition to notify the time interval completes the delay and timeout is about
to happen.
|
| Constructor and Description |
|---|
POBTimeoutHandler(POBTimeoutHandler.POBTimeoutHandlerListener listener)
Initialises Timer Handler with listener reference
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Reset already running timer.
|
boolean |
start(long delayInMs)
Schedules the specified task for execution after the specified delay.
|
boolean |
startAtFixedRate(long delayInMS,
long period)
Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
|
public POBTimeoutHandler(@NonNull
POBTimeoutHandler.POBTimeoutHandlerListener listener)
listener - valid reference of listenerpublic boolean start(long delayInMs)
delayInMs - the delay time in millisecond.public boolean startAtFixedRate(long delayInMS,
long period)
delayInMS - the delay time in millisecond.period - regular interval time in millisecondpublic void cancel()