org.mmbase.sms
Class Sender
java.lang.Object
org.mmbase.sms.Sender
- Direct Known Subclasses:
- CMTelecomSender, EventSender
public abstract class Sender
- extends Object
The core of this class are offer(SMS) and send(SMS), which both send an SMS,
but the first one allows for some delay.
This class is abstract and must be extended. The method getInstance() returns one instance
of an extension. Which class is instantiated is determined by <config>utils/sms_sender.xml
- Version:
- $Id: Sender.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 |
Sender
public Sender()
send
public abstract boolean send(SMS sms)
- Sends an SMS, immediately.
offer
public abstract boolean offer(SMS sms)
- Offers an SMS for sending. It needs not do this immediately, but may collect some, and offer
them in batch to an SMS gateway.
getQueue
public abstract Collection<SMS> getQueue()
determinActive
protected static boolean determinActive()
- To Do:
- Similar code in org.mmbase.module.lucene.Lucene, org.mmbase.notifications.Notifier Generalize this.
getInstance
public static Sender getInstance()
MMBase 2.0-SNAPSHOT - null