org.mmbase.sms
Class EventSender
java.lang.Object
org.mmbase.sms.Sender
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventSender
public EventSender()
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