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 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

      void resolve(R matsSocketResolveMessage)
      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), or null if you just want to resolve it without adding any information.
    • reject

      void reject(R matsSocketRejectMessage)
      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, or null if you just want to reject it without adding any information.