T
- is the type of ActiveEvent
that this class dispatches.public abstract class ActiveEventDispatcher<T> extends 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, IllegalStateException, IllegalArgumentException
RegistrationException
- when event
is already
registered.IllegalStateException
- when this object has been destroyed.IllegalArgumentException
- when event
is not stopped.event
- to registerpublic abstract void deregister(T event) throws DeregistrationException, IllegalStateException, IllegalArgumentException
DeregistrationException
- when event
is already
registered.IllegalStateException
- when this object has been destroyed.IllegalArgumentException
- when event
is not stopped.event
- to deregisterpublic abstract void destroy() throws IllegalStateException
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.