public class AsynchronousSMS extends DisposableMessage<String,String> implements AsynchronousMessage<String,String>
AsynchronousMessage
,
Serialized FormcontentType, messageId, payload, priority, recipients
Constructor and Description |
---|
AsynchronousSMS(String payload,
Priority priority,
String phoneNumber,
Consumer consumer) |
AsynchronousSMS(String messageId,
String payload,
Priority priority,
List<String> phoneNumbers,
Consumer consumer) |
Modifier and Type | Method and Description |
---|---|
Consumer |
getResponseCallback()
Callback when message has been processed
|
getContentType, getMessageId, getPayload, getPriority, getRecipients, setContentType, setMessageId, setPayload, setPriority, setRecipients
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
call
getContentType, getMessageId, getPayload, getPriority, getRecipients
public AsynchronousSMS(String messageId, String payload, Priority priority, List<String> phoneNumbers, Consumer consumer)
payload
- : Message to be Delivered , Type : Stringpriority
- : Priority of Message to be deliveredphoneNumbers
- : Recipient Phone Number to which message is to be delivered, Type : Stringconsumer
- : Serves as the hook via which a response is receivedpublic AsynchronousSMS(String payload, Priority priority, String phoneNumber, Consumer consumer)
payload
- : Message to be Delivered , Type : Stringpriority
- : Priority of Message to be deliveredphoneNumber
- : Recipient Phone Number to which message is to be delivered, Type : Stringconsumer
- : Serves as the hook via which a response is receivedpublic Consumer getResponseCallback()
AsynchronousMessage
getResponseCallback
in interface AsynchronousMessage<String,String>
Consumer
Copyright © 2018. All rights reserved.