Methods Summary |
---|
public synchronized void | cancel()
cancelled = true;
timer.cancelEvent( this );
|
public int | compareTo(java.lang.Object other)
long res = when - ((TimerEvent)other).getWhen();
if ( res == 0 ){
return((int)( unique_id - ((TimerEvent)other).getUniqueId()));
}else{
return res < 0 ? -1 : 1;
}
|
public long | getCreatedTime()
return( created );
|
public java.lang.String | getName()
return( name );
|
protected TimerEventPerformer | getPerformer()
return( performer );
|
protected AERunnable | getRunnable()
return( this );
|
public java.lang.String | getString()
if ( performer instanceof TimerEventPeriodic ){
TimerEventPeriodic tep = (TimerEventPeriodic)performer;
return( "when=" + getWhen() + ",run=" + hasRun() + ", can=" + isCancelled() + "/" + tep.isCancelled() + ",freq=" + tep.getFrequency() + ",target=" + tep.getPerformer()+ (name==null?"":",name=" + name ));
}else{
return( "when=" + getWhen() + ",run=" + hasRun() + ", can=" + isCancelled() + ",target=" + getPerformer() + (name==null?"":",name=" + name ));
}
|
protected long | getUniqueId()
return( unique_id );
|
public long | getWhen()
return( when );
|
public boolean | hasRun()
return( has_run );
|
public void | interruptTask()
|
public synchronized boolean | isCancelled()
return( cancelled );
|
public void | runSupport()
performer.perform( this );
|
protected void | setHasRun()
has_run = true;
|
public void | setName(java.lang.String _name)
name = _name;
|
protected void | setWhen(long new_when)
when = new_when;
|