Package io.mats3.matssocket
Interface MatsSocketServer.MatsSocketEndpointReplyContext<I,MR,R>
- All Superinterfaces:
MatsSocketServer.MatsSocketEndpointContext<I,
MR, R>
- Enclosing interface:
- MatsSocketServer
public static interface MatsSocketServer.MatsSocketEndpointReplyContext<I,MR,R>
extends MatsSocketServer.MatsSocketEndpointContext<I,MR,R>
-
Method Summary
Modifier and TypeMethodDescriptionio.mats3.MatsEndpoint.DetachedProcessContext
void
Send "Reject" reply (rejects the client side Promise) to the MatsSocket directly, i.e.void
Send "Resolve" reply (resolves the client side Promise) to the MatsSocket directly, i.e.Methods inherited from interface io.mats3.matssocket.MatsSocketServer.MatsSocketEndpointContext
getMatsSocketEndpoint, getMatsSocketEndpointId
-
Method Details
-
getMatsContext
io.mats3.MatsEndpoint.DetachedProcessContext getMatsContext()- Returns:
- the
MatsEndpoint.DetachedProcessContext
of the Mats incoming handler.
-
getMatsReplyMessage
MR getMatsReplyMessage()- Returns:
- the reply from Mats, which is to be adapted to the MatsSocketReply.
-
resolve
Send "Resolve" reply (resolves the client side Promise) to the MatsSocket directly, i.e. without forward to Mats - can be used if you can answer the MatsSocket request directly without going onto the Mats MQ fabric.- Parameters:
matsSocketResolveMessage
- the resolve message (the actual reply), ornull
if you just want to resolve it without adding any information.
-
reject
Send "Reject" reply (rejects the client side Promise) to the MatsSocket directly, i.e. without forward to Mats - can be used if you can answer the MatsSocket request directly without going onto the Mats MQ fabric.- Parameters:
matsSocketRejectMessage
- the reject message, ornull
if you just want to reject it without adding any information.
-