org.mmbase.sms
Class EventSender

java.lang.Object
  extended by org.mmbase.sms.Sender
      extended by org.mmbase.sms.EventSender

public class EventSender
extends Sender

SMS Sender implementation, which only wraps the message in an SMSEvent and offers it to the Event Manager. Assumed is that precisely one of the mmbases in the cluster is configured with some actual SMS sending implementation and accepts the event.

Version:
$Id: EventSender.java 35335 2009-05-21 08:14:41Z michiel $
Author:
Michiel Meeuwissen

Constructor Summary
EventSender()
           
 
Method Summary
 Collection<SMS> getQueue()
           
 boolean offer(SMS sms)
          Offers an SMS for sending.
 boolean send(SMS sms)
          Sends an SMS, immediately.
 
Methods inherited from class org.mmbase.sms.Sender
determinActive, getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventSender

public EventSender()
Method Detail

send

public boolean send(SMS sms)
Description copied from class: Sender
Sends an SMS, immediately.

Specified by:
send in class Sender

offer

public boolean offer(SMS sms)
Description copied from class: Sender
Offers an SMS for sending. It needs not do this immediately, but may collect some, and offer them in batch to an SMS gateway.

Specified by:
offer in class Sender

getQueue

public Collection<SMS> getQueue()
Specified by:
getQueue in class Sender


MMBase 2.0-SNAPSHOT - null