2.17.2: 2011-06-17

net.sf.basedb.core.signal
Class SimpleSignalSender

java.lang.Object
  extended by net.sf.basedb.core.signal.SimpleSignalSender
All Implemented Interfaces:
SignalSender

public class SimpleSignalSender
extends Object
implements SignalSender

A signal sender implementation that sends a specific signal to all handlers that supports it.

Since:
2.16
Author:
Nicklas
Last modified
$Date: 2010-09-02 14:09:15 +0200 (Thu, 02 Sep 2010) $

Field Summary
private  Signal signal
           
 
Constructor Summary
SimpleSignalSender(Signal signal)
          Create a new signal sender.
 
Method Summary
 void sendTo(SignalHandler handler)
          Send a signal to the specific signal handler.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

signal

private final Signal signal
Constructor Detail

SimpleSignalSender

public SimpleSignalSender(Signal signal)
Create a new signal sender.

Parameters:
signal - The signal to send
Method Detail

sendTo

public void sendTo(SignalHandler handler)
Description copied from interface: SignalSender
Send a signal to the specific signal handler.

Specified by:
sendTo in interface SignalSender
Parameters:
handler - A signal handler

toString

public String toString()
Overrides:
toString in class Object

2.17.2: 2011-06-17