Class ForwardingSignalHandler

java.lang.Object
net.sf.basedb.core.signal.AbstractSignalHandler
net.sf.basedb.core.signal.ForwardingSignalHandler
All Implemented Interfaces:
SignalHandler, Action

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: 2014-04-09 14:21:20 +0200 (on, 09 apr 2014) $
  • Field Details

    • logger

      private static final Logger logger
      Log signals processing.
    • forwardTo

      private final SignalTransporter forwardTo
      The signal transporter to forward signals to.
  • Constructor Details

    • ForwardingSignalHandler

      public ForwardingSignalHandler(SignalTransporter forwardTo)
      Create a new forwarding signal handler.
      Parameters:
      forwardTo - The signal transporter to forward signals to
  • Method Details

    • 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