public class SignalDispatcher extends ActiveEventDispatcher<SignalDispatcher,Signal>
Signals.
An application can provide its own dispatcher, providing the priority for
the internal dispatching thread. This dispatching thread calls
process() each time the signal is triggered.| Constructor and Description |
|---|
SignalDispatcher(SchedulingParameters scheduling)
Creates a new dispatcher, whose dispatching thread runs with the given
SchedulingParameters. |
SignalDispatcher(SchedulingParameters scheduling,
RealtimeThreadGroup group)
Creates a new dispatcher, whose dispatching thread runs with the given
SchedulingParameters. |
| Modifier and Type | Method and Description |
|---|---|
void |
deregister(Signal signal)
Deregisters the POSIX Signal from this dispatcher.
|
void |
destroy()
Releases all reasources thereby making the dispatcher unusable.
|
void |
register(Signal signal)
Registers a POSIX signal with this dispatcher.
|
static void |
setDefaultDispatcher(SignalDispatcher dispatcher)
Sets the system default signal dispatcher.
|
getRealtimeThreadGroup, getScheduler, getSchedulingParameters, setScheduler, setScheduler, setSchedulingParameterspublic SignalDispatcher(SchedulingParameters scheduling, RealtimeThreadGroup group)
SchedulingParameters.scheduling - Parameters for scheduling this dispatcher.group - Container for this dispatcher.java.lang.UnsupportedOperationException - everytime, since this is not implemented yet.public SignalDispatcher(SchedulingParameters scheduling)
SchedulingParameters.scheduling - For scheduling this dispatcher.java.lang.UnsupportedOperationException - everytime, since this is not implemented yet.public static void setDefaultDispatcher(SignalDispatcher dispatcher)
dispatcher - An instance to be used when no dispatcher is
provided. When null, the signal dispatcher is set
to the original system default.java.lang.UnsupportedOperationException - everytime, since this is not implemented yet.public void register(Signal signal) throws RegistrationException, StaticIllegalStateException, StaticIllegalArgumentException
register in class ActiveEventDispatcher<SignalDispatcher,Signal>signal - The signal instance to register.RegistrationException - when Signal is already registered.StaticIllegalStateException - when this
object has been destroyed.StaticIllegalArgumentException - when
Signal is not stopped.java.lang.UnsupportedOperationException - everytime, since this is not implemented yet.public void deregister(Signal signal) throws DeregistrationException, StaticIllegalStateException, StaticIllegalArgumentException
deregister in class ActiveEventDispatcher<SignalDispatcher,Signal>signal - The signal instance to deregister.DeregistrationException - when Signal is not already
registered.StaticIllegalStateException - when this
object has been destroyed.StaticIllegalArgumentException - when
Signal is not stopped.java.lang.UnsupportedOperationException - everytime, since this is not implemented yet.public void destroy()
throws StaticIllegalStateException
destroy in class ActiveEventDispatcher<SignalDispatcher,Signal>StaticIllegalStateException - when called on
a dispatcher that has one or more registered Signal
objects.java.lang.UnsupportedOperationException - everytime, since this is not implemented yet.aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2021 aicas GmbH. All Rights Reserved.