|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.errai.ioc.support.bus.client.ErraiMessageSender<T>
public final class ErraiMessageSender<T>
Method Summary | ||
---|---|---|
static
|
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 message
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |