Class DatagramHeaderMarshaller

    • Constructor Detail

      • DatagramHeaderMarshaller

        public DatagramHeaderMarshaller()
    • Method Detail

      • createEndpoint

        public Endpoint createEndpoint​(ByteBuffer readBuffer,
                                       SocketAddress address)
        Reads any header if applicable and then creates an endpoint object
      • writeHeader

        public void writeHeader​(Command command,
                                ByteBuffer writeBuffer)
      • getEndpoint

        protected Endpoint getEndpoint​(SocketAddress address)
        Gets the current endpoint object for this address or creates one if not available. Note that this method does not need to be synchronized as its only ever going to be used by the already-synchronized read() method of a CommandChannel