Class DatagramHeaderMarshaller

java.lang.Object
org.apache.activemq.transport.udp.DatagramHeaderMarshaller
Direct Known Subclasses:
MulticastDatagramHeaderMarshaller

public class DatagramHeaderMarshaller extends Object
  • Constructor Details

    • DatagramHeaderMarshaller

      public DatagramHeaderMarshaller()
  • Method Details

    • createEndpoint

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

      public Endpoint createEndpoint(DatagramPacket datagram, DataInputStream dataIn)
    • writeHeader

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

      public void writeHeader(Command command, DataOutputStream dataOut)
    • 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
    • createEndpoint

      protected Endpoint createEndpoint(SocketAddress address)