org.apache.axis2.transport.sms.gsm
Class GSMDispatcher
java.lang.Object
org.apache.axis2.transport.sms.gsm.GSMDispatcher
- All Implemented Interfaces:
- java.lang.Runnable
public class GSMDispatcher
- extends java.lang.Object
- implements java.lang.Runnable
GSMDispatcher will access the gsm modem and dispatch the incomming SMS s to the Axis2
Field Summary |
protected org.apache.commons.logging.Log |
log
|
Constructor Summary |
GSMDispatcher(org.smslib.Service service,
SMSManager manager)
To create a GSMDispatcher a service object that is created for the current GSM modem is needed |
Method Summary |
void |
run()
|
void |
setPollInterval(long pollInterval)
set the modem Polling time
modem polling time will be the time interval that the modem will be polled to get the unread messages
form the inbox. |
void |
stopPolling()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected org.apache.commons.logging.Log log
GSMDispatcher
public GSMDispatcher(org.smslib.Service service,
SMSManager manager)
- To create a GSMDispatcher a service object that is created for the current GSM modem is needed
- Parameters:
service
- manager
-
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
stopPolling
public void stopPolling()
setPollInterval
public void setPollInterval(long pollInterval)
- set the modem Polling time
modem polling time will be the time interval that the modem will be polled to get the unread messages
form the inbox.
the optimal value for this will be diffrent form modem to modem.
Keep the default value of you are not aware of it
- Parameters:
pollInterval
-
Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.