public static class Timeout.Task extends Object
Modifier | Constructor and Description |
---|---|
protected |
Timeout.Task() |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel the task.
|
protected void |
expire()
Expire task.
|
void |
expired()
Expire task.
|
long |
getAge() |
long |
getTimestamp() |
boolean |
isExpired() |
boolean |
isScheduled() |
void |
reschedule()
Reschedule the task on the current timeout.
|
void |
schedule(Timeout timer)
Schedule the task on the given timeout.
|
void |
schedule(Timeout timer,
long delay)
Schedule the task on the given timeout.
|
public long getTimestamp()
public long getAge()
public void schedule(Timeout timer)
timer
- public void schedule(Timeout timer, long delay)
timer
- public void reschedule()
public void cancel()
public boolean isExpired()
public boolean isScheduled()
protected void expire()
isExpired()
state to true.For an unsynchronized callback.
public void expired()
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.