public interface Timeout extends ExpirationTrigger
Timeout extends the concept of ExpirationTrigger
to make tighter relation to the flow of time as the primary cause of expiration triggering.| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_PERCENT
The MAX _ pERCENT.
|
| Modifier and Type | Method and Description |
|---|---|
Long |
getRemainingMillis()
Gets remaining millis.
|
int |
getRemainingPercent()
Gets remaining percent.
|
long |
getTimeout()
Provides the total timeout time in milliseconds.
|
boolean |
isElapsed()
Is elapsed.
|
boolean |
isRunning()
Is running.
|
Timeout |
restart()
Restart timeout.
|
boolean |
restartIfElapsed()
Restart if elapsed.
|
Timeout |
setTimeout(long millis)
Sets timeout.
|
Timeout |
start()
Start timeout.
|
Timeout |
startIfNotRunning()
Start if not running.
|
Timeout |
stop()
Stop timeout.
|
expireNow, isExpiredstatic final int MAX_PERCENT
long getTimeout()
Timeout setTimeout(long millis)
millis - the millisTimeout start()
Timeout startIfNotRunning()
Timeout stop()
Timeout restart()
boolean isRunning()
boolean isElapsed()
boolean restartIfElapsed()
int getRemainingPercent()
Long getRemainingMillis()
Copyright © 2014 Boleslav Bobcik - Auderis. All rights reserved.