Class DatagramHeaderMarshaller
java.lang.Object
org.apache.activemq.transport.udp.DatagramHeaderMarshaller
- Direct Known Subclasses:
MulticastDatagramHeaderMarshaller
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateEndpoint(DatagramPacket datagram, DataInputStream dataIn) protected EndpointcreateEndpoint(SocketAddress address) createEndpoint(ByteBuffer readBuffer, SocketAddress address) Reads any header if applicable and then creates an endpoint objectprotected EndpointgetEndpoint(SocketAddress address) Gets the current endpoint object for this address or creates one if not available.voidwriteHeader(Command command, DataOutputStream dataOut) voidwriteHeader(Command command, ByteBuffer writeBuffer)
-
Constructor Details
-
DatagramHeaderMarshaller
public DatagramHeaderMarshaller()
-
-
Method Details
-
createEndpoint
Reads any header if applicable and then creates an endpoint object -
createEndpoint
-
writeHeader
-
writeHeader
-
getEndpoint
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
-