|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.cougaar.core.plugin.PluginAlarm
public abstract class PluginAlarm
A standard Alarm implementation.
| Constructor Summary | |
|---|---|
PluginAlarm(long time)
Construct an alarm to expire |
|
| Method Summary | |
|---|---|
boolean |
cancel()
This method can be called by a client to cancel the alarm. |
void |
expire()
Called by the agent's alarm time when clock-time >= getExpirationTime(). |
protected abstract BlackboardService |
getBlackboardService()
|
long |
getExpirationTime()
|
boolean |
hasExpired()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PluginAlarm(long time)
| Method Detail |
|---|
public long getExpirationTime()
getExpirationTime in interface Alarmprotected abstract BlackboardService getBlackboardService()
public void expire()
AlarmThe system will attempt to Expire the Alarm as soon as possible on or after the ExpirationTime, but cannot guarantee any specific maximum latency. NOTE: this will be called in the thread of the cluster clock. Implementations should make certain that this code does not block for a significant length of time. If the alarm has been canceled, this should be a no-op.
expire in interface Alarmpublic boolean hasExpired()
hasExpired in interface Alarmpublic boolean cancel()
Alarm
cancel in interface Alarm
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||