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
public class ForwardingSignalHandler
- extends AbstractSignalHandler
A signal handler implementation that forwards the signal to
another signal transporter.
- Version:
- 2.6
- Author:
- nicklas
- Last modified
- $Date: 2008-09-11 22:09:17 +0200 (Thu, 11 Sep 2008) $
Method Summary |
void |
handleSignal(Signal signal)
Forwards the signal to the signal transporter given in the
constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static final Logger logger
- Log signals processing.
forwardTo
private final SignalTransporter forwardTo
- The signal transporter to forward signals to.
ForwardingSignalHandler
public ForwardingSignalHandler(SignalTransporter forwardTo)
- Create a new forwarding signal handler.
- Parameters:
forwardTo
- The signal transporter to forward signals to
handleSignal
public void handleSignal(Signal signal)
- 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