public static interface MatsSocketServer.MatsSocketEndpointReplyContext<I,MR,R> extends MatsSocketServer.MatsSocketEndpointContext<I,MR,R>
| Modifier and Type | Method and Description |
|---|---|
io.mats3.MatsEndpoint.DetachedProcessContext |
getMatsContext() |
MR |
getMatsReplyMessage() |
void |
reject(R matsSocketRejectMessage)
Send "Reject" reply (rejects the client side Promise) to the MatsSocket directly, i.e.
|
void |
resolve(R matsSocketResolveMessage)
Send "Resolve" reply (resolves the client side Promise) to the MatsSocket directly, i.e.
|
getMatsSocketEndpoint, getMatsSocketEndpointIdio.mats3.MatsEndpoint.DetachedProcessContext getMatsContext()
MatsEndpoint.DetachedProcessContext of the Mats incoming handler.MR getMatsReplyMessage()
void resolve(R matsSocketResolveMessage)
matsSocketResolveMessage - the resolve message (the actual reply), or null if you just want to resolve it without
adding any information.void reject(R matsSocketRejectMessage)
matsSocketRejectMessage - the reject message, or null if you just want to reject it without adding any information.