public interface ManualAck
Modifier and Type | Method and Description |
---|---|
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.
|
void acknowledge(Message msg) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException, java.io.IOException
msg
- the Message to acceptjava.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 statusjava.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 usejava.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()
object XP, Inc. © 2000-2013. All rights reserved object XP