public interface Sender<T>
Injection of a sender must be qualified with ToSubject
and optionally ReplyTo
.
Example:
@Inject
@ToSubject("ListCapitializationService")
@ReplyTo("ClientListService")
Sender<String> listSender;
Modifier and Type | Method and Description |
---|---|
void |
send(T value)
Sends the message to the subject specified by
ToSubject . |
void |
send(T value,
ErrorCallback errorCallback)
Sends the message to the subject specified by
ToSubject . |
void |
send(T value,
MessageCallback replyTo)
Sends the message to the subject specified by
ToSubject . |
void |
send(T value,
MessageCallback replyTo,
ErrorCallback errorCallback)
Sends the message to the subject specified by
ToSubject . |
void send(T value)
ToSubject
.value
- the payload of the message stored in MessageParts.Value
void send(T value, ErrorCallback errorCallback)
ToSubject
.value
- the payload of the message stored in MessageParts.Value
errorCallback
- a callback to be registered to handle errors when sending the messagevoid send(T value, MessageCallback replyTo)
ToSubject
.value
- the payload of the message stored in MessageParts.Value
replyTo
- a callback to be registered to handle a reply from the remote servicevoid send(T value, MessageCallback replyTo, ErrorCallback errorCallback)
ToSubject
.value
- the payload of the message stored in MessageParts.Value
replyTo
- a callback to be registered to handle a reply from the remote serviceerrorCallback
- a callback to be registered to handle errors when sending the messageCopyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.