|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ManualAck
This interface defines the methods necessary to manually acknowledge (ACK) incoming messages. SmsService implementations supporting manual ACK implement this interface.
| Method Summary | |
|---|---|
void |
acknowledge(Message msg)
Accept a incoming message. |
void |
acknowledge(Message msg,
java.lang.Object status)
Accept/Reject a incoming message. |
void |
disableManualAck()
Disable manual acknowledgement. |
void |
enableManualAck()
Enable manual acknowledgement. |
boolean |
isManualAckEnabled()
Check if manual acknowledgement is enabled/disabled. |
| Method Detail |
|---|
void acknowledge(Message msg)
throws java.lang.IllegalArgumentException,
java.lang.IllegalStateException,
java.io.IOException
msg - the Message to accept
java.lang.IllegalArgumentException - if the Message is null or not a incoming message,
or if the message has been received by another SmsService.
java.lang.IllegalStateException - if the Service is not initialized or not
connected to the SMSC.
IOException - if the communication with the SMSC fails.
void acknowledge(Message msg,
java.lang.Object status)
throws java.lang.IllegalArgumentException,
java.lang.IllegalStateException,
java.io.IOException
msg - the Message to acceptstatus - the acknowledgement status
java.lang.IllegalArgumentException - if the Message is null or not a incoming message,
or if the message has been received by another SmsService.
java.lang.IllegalArgumentException - if the status parameter is not applicable
for the SmsService implementation in use
java.lang.IllegalStateException - if the Service is not initialized or not
connected to the SMSC.
IOException - if the communication with the SMSC fails.void enableManualAck()
acknowledge(Message).
void disableManualAck()
boolean isManualAckEnabled()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||