Modifier and Type | Method and Description |
---|---|
static <U> ErraiMessageSender<U> |
of(String toSubject,
String replyTo,
MessageBus messageBus) |
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 . |
public static <U> ErraiMessageSender<U> of(String toSubject, String replyTo, MessageBus messageBus)
public void send(T value)
Sender
ToSubject
.send
in interface Sender<T>
value
- the payload of the message stored in MessageParts.Value
public void send(T value, ErrorCallback errorCallback)
Sender
ToSubject
.send
in interface Sender<T>
value
- the payload of the message stored in MessageParts.Value
errorCallback
- a callback to be registered to handle errors when sending the messagepublic void send(T value, MessageCallback replyTo)
Sender
ToSubject
.send
in interface Sender<T>
value
- the payload of the message stored in MessageParts.Value
replyTo
- a callback to be registered to handle a reply from the remote servicepublic void send(T value, MessageCallback replyTo, ErrorCallback errorCallback)
Sender
ToSubject
.send
in interface Sender<T>
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.