|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface WindowingService
This interface may be implemented by SmsServices that support Windowing. Make sure that your SMSC has enabled windowing before using it.
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.
| Field Summary |
|---|
| Fields inherited from interface com.objectxp.msg.SmsService |
|---|
VERSION |
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface com.objectxp.msg.SmsService |
|---|
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 |
| Method Detail |
|---|
void setWindowSize(int size)
throws java.lang.IllegalAccessException
size - the window size
java.lang.IllegalAccessException - if the service is connected to
the SMSC when calling this methodint getWindowSize()
int getNumberOfPendingMessages()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||