public class JCSMPTimerImpl extends Object implements JCSMPTimer
| Modifier and Type | Method and Description |
|---|---|
void |
clearHandler()
Clear the handler: crucial for conserving memory.
|
int |
compareTo(JCSMPTimer o) |
boolean |
equals(Object o) |
JCSMPTimeoutHandler |
getHandler() |
long |
getTimeout() |
int |
hashCode() |
boolean |
isActive()
The "active" flag is set to false if a timer has been canceled, and is
checked before the handler fires.
|
boolean |
isExpired() |
void |
rescheduled(long abs_timeout,
JCSMPTimeoutHandler handler) |
void |
setActive(boolean activeFlag) |
void |
setExpired(boolean exp) |
public final void rescheduled(long abs_timeout,
JCSMPTimeoutHandler handler)
public final JCSMPTimeoutHandler getHandler()
getHandler in interface JCSMPTimerpublic final void clearHandler()
public final long getTimeout()
getTimeout in interface JCSMPTimerpublic final boolean isExpired()
isExpired in interface JCSMPTimerpublic final boolean isActive()
JCSMPTimerisActive in interface JCSMPTimerpublic final void setExpired(boolean exp)
public final void setActive(boolean activeFlag)
public final int compareTo(JCSMPTimer o)
compareTo in interface Comparable<JCSMPTimer>Copyright 2004-2021 Solace Corporation. All rights reserved.