Package net.sf.basedb.core.signal
Class ForwardingSignalHandler
java.lang.Object
net.sf.basedb.core.signal.AbstractSignalHandler
net.sf.basedb.core.signal.ForwardingSignalHandler
- All Implemented Interfaces:
SignalHandler
,Action
A signal handler implementation that forwards the signal to
another signal transporter.
- Version:
- 2.6
- Author:
- nicklas
- Last modified
- $Date: 2014-04-09 14:21:20 +0200 (on, 09 apr 2014) $
-
Field Summary
Modifier and TypeFieldDescriptionprivate final SignalTransporter
The signal transporter to forward signals to.private static final Logger
Log signals processing. -
Constructor Summary
ConstructorDescriptionForwardingSignalHandler
(SignalTransporter forwardTo) Create a new forwarding signal handler. -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleSignal
(Signal signal) Forwards the signal to the signal transporter given in the constructor.Methods inherited from class net.sf.basedb.core.signal.AbstractSignalHandler
addSignal, getSupportedSignals, removeSignal, supports
-
Field Details
-
logger
Log signals processing. -
forwardTo
The signal transporter to forward signals to.
-
-
Constructor Details
-
ForwardingSignalHandler
Create a new forwarding signal handler.- Parameters:
forwardTo
- The signal transporter to forward signals to
-
-
Method Details
-
handleSignal
Forwards the signal to the signal transporter given in the constructor. This method doesn't check if the signal is supported or not.- Parameters:
signal
- The signal to handle
-