|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.realtime.ActiveEventDispatcher<T>
T
- is the type of ActiveEvent
that this class dispatches.public abstract class ActiveEventDispatcher<T>
Provides a means of dispatching a set of ActiveEvent
s. It
acts as if it contains a RealtimeThread to perform this task. The
priority of this thread can be specified when a dispatcher object is
created. The default dispatcher runs at the highest Java realtime
priority.
Application code should not extend this class.
Constructor Summary | |
---|---|
protected |
ActiveEventDispatcher(SchedulingParameters schedule)
Create a new dispatcher. |
Method Summary | |
---|---|
abstract void |
deregister(T event)
Deregister a POSIX Signal form this dispatcher. |
abstract void |
destroy()
Makes the dispatcher unusable. |
abstract void |
register(T event)
Register a POSIX signal with this dispatcher. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ActiveEventDispatcher(SchedulingParameters schedule)
schedule
- provide scheduling informs to the new object.Method Detail |
---|
public abstract void register(T event) throws RegistrationException, IllegalStateException, IllegalArgumentException
event
- to register
RegistrationException
- when event
is already
registered.
IllegalStateException
- when this object has been destroyed.
IllegalArgumentException
- when event
is not stopped.public abstract void deregister(T event) throws DeregistrationException, IllegalStateException, IllegalArgumentException
event
- to deregister
DeregistrationException
- when event
is already
registered.
IllegalStateException
- when this object has been destroyed.
IllegalArgumentException
- when event
is not stopped.public abstract void destroy() throws IllegalStateException
IllegalStateException
- when called on a dispatcher that has
one or more registered objects.
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |