T
- is the type of ActiveEvent
that this class dispatches.public abstract class ActiveEventDispatcher<T>
extends java.lang.Object
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.
Modifier | Constructor and Description |
---|---|
protected |
ActiveEventDispatcher(SchedulingParameters schedule)
Create a new dispatcher.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected ActiveEventDispatcher(SchedulingParameters schedule)
schedule
- provide scheduling informs to the new object.public abstract void register(T event) throws RegistrationException, java.lang.IllegalStateException, java.lang.IllegalArgumentException
event
- to registerRegistrationException
- when event
is already
registered.java.lang.IllegalStateException
- when this object has been destroyed.java.lang.IllegalArgumentException
- when event
is not stopped.public abstract void deregister(T event) throws DeregistrationException, java.lang.IllegalStateException, java.lang.IllegalArgumentException
event
- to deregisterDeregistrationException
- when event
is already
registered.java.lang.IllegalStateException
- when this object has been destroyed.java.lang.IllegalArgumentException
- when event
is not stopped.public abstract void destroy() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- when called on a dispatcher that has
one or more registered objects.aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2017 aicas GmbH. All Rights Reserved.