Module id.ICE
Package id.ICE

Class MessageRequest


  • public class MessageRequest
    extends Object
    Response message sent to the client
    • Constructor Summary

      Constructors 
      Constructor Description
      MessageRequest​(int clientId, Optional<ByteBuffer> message)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getConnectionId()
      Id of the connection to which this request belongs.
      Optional<ByteBuffer> getMessage()
      Request message as sent by the client.
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MessageRequest

        public MessageRequest​(int clientId,
                              Optional<ByteBuffer> message)
        Parameters:
        message - Message request received from the client.
    • Method Detail

      • getConnectionId

        public int getConnectionId()
        Id of the connection to which this request belongs. All requests sent by the client in same connection will have same connection id.
      • getMessage

        public Optional<ByteBuffer> getMessage()
        Request message as sent by the client. If service requested to ignore next client request (see MessageResponse.withIgnoreNextRequest()) then this message will be empty.