|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Sender<T>
An interface that can be used as the injection point for a convenience object that sends single-payload messages to a given subject.
Injection of a sender must be qualified with ToSubject
and optionally ReplyTo
.
Example:
@Inject
@ToSubject("ListCapitializationService")
@ReplyTo("ClientListService")
Sender<String> listSender;
Method Summary | |
---|---|
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 . |
Method Detail |
---|
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 message
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |