|
Appia Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.appia.core.Event
net.sf.appia.core.events.channel.ChannelEvent
net.sf.appia.core.events.channel.PeriodicTimer
public class PeriodicTimer
Defines a PeriodicTimer class.
Field Summary | |
---|---|
protected long |
period
The period between notifications, in milliseconds. |
java.lang.String |
timerID
The Timer unique Identification. |
Fields inherited from class net.sf.appia.core.Event |
---|
DEFAULT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY |
Constructor Summary | |
---|---|
PeriodicTimer()
Creates a uninitialized PeriodicTimer Event. |
|
PeriodicTimer(java.lang.String timerID,
long period,
Channel channel,
int dir,
Session source,
int qualifier)
Creates a initialized PeriodicTimer Event. |
Method Summary | |
---|---|
Event |
cloneEvent()
Redefenition of Event.cloneEvent. |
long |
getPeriod()
Gets the time between the periodic notifications. |
void |
setPeriod(long period)
Sets the time between the periodic notifications, in milliseconds. |
Methods inherited from class net.sf.appia.core.events.channel.ChannelEvent |
---|
getQualifierMode, setQualifierMode |
Methods inherited from class net.sf.appia.core.Event |
---|
asyncGo, currentSession, debug, getChannel, getDir, getPriority, getSchedulerData, getSource, getSourceSession, go, init, isAccepted, popSession, setChannel, setDir, setPriority, setSchedulerData, setSource, setSourceSession |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String timerID
protected long period
Constructor Detail |
---|
public PeriodicTimer()
public PeriodicTimer(java.lang.String timerID, long period, Channel channel, int dir, Session source, int qualifier) throws AppiaEventException, AppiaException
timerID
- the timer IDperiod
- the period of the timer, in milliseconds.channel
- the channeldir
- the direction of the timer.source
- the session that created the eventqualifier
- the event qualifier
AppiaEventException
AppiaException
- if the period is negative.Method Detail |
---|
public void setPeriod(long period) throws AppiaException
period
- The period in milliseconds.
AppiaException
public long getPeriod()
public Event cloneEvent() throws java.lang.CloneNotSupportedException
cloneEvent
in class ChannelEvent
java.lang.CloneNotSupportedException
- as the possible result of calling
Event.cloneEvent()
|
Appia Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |