public interface WindowingService extends SmsService
When windowing is enabled and the maximum window size is not yet reached, the sendMessage() method will immediately return and you will be notified about the success/failure of the method using a MessageEvent.
If windowing is disabled or the "window" is full, sendMessage() will block until the SMSC acknowledges/rejects the message.
VERSION
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfPendingMessages()
Returns the number of pending (unprocessed messages).
|
int |
getWindowSize()
Returns the current window size or 1 if windowing is disabled.
|
void |
setWindowSize(int size)
Set the window size for this service.
|
addMessageEventListener, cancel, connect, destroy, disconnect, getKeepAliveInterval, getLastIsAliveTime, getProperties, getServiceName, hasCapability, init, init, init, isAlive, isConnected, isInitialized, isKeepAliveActive, isReceiving, query, removeMessageEventListener, replace, sendMessage, setKeepAliveInterval, startReceiving, stopReceiving, supportDeleteMessage, supportReadMessage
void setWindowSize(int size) throws java.lang.IllegalAccessException
size
- the window sizejava.lang.IllegalAccessException
- if the service is connected to
the SMSC when calling this methodint getWindowSize()
int getNumberOfPendingMessages()
object XP, Inc. © 2000-2013. All rights reserved object XP