Class CommandChannelSupport
java.lang.Object
org.apache.activemq.transport.udp.CommandChannelSupport
- All Implemented Interfaces:
Service,Replayer,CommandChannel
- Direct Known Subclasses:
CommandDatagramChannel,CommandDatagramSocket
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected DatagramHeaderMarshallerprotected final Stringprotected SocketAddressprotected final IntSequenceGeneratorprotected SocketAddressprotected OpenWireFormat -
Constructor Summary
ConstructorsConstructorDescriptionCommandChannelSupport(UdpTransport transport, OpenWireFormat wireFormat, int datagramSize, SocketAddress targetAddress, DatagramHeaderMarshaller headerMarshaller) -
Method Summary
Modifier and TypeMethodDescriptionintvoidsetDatagramSize(int datagramSize) Sets the default size of a datagram on the network.voidsetHeaderMarshaller(DatagramHeaderMarshaller headerMarshaller) voidsetReplayAddress(SocketAddress replayAddress) voidsetReplayBuffer(ReplayBuffer replayBuffer) voidsetTargetAddress(SocketAddress targetAddress) toString()voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.activemq.transport.udp.CommandChannel
getReceiveCounter, read, writeMethods inherited from interface org.apache.activemq.transport.reliable.Replayer
sendBuffer
-
Field Details
-
wireFormat
-
datagramSize
protected int datagramSize -
targetAddress
-
replayAddress
-
name
-
sequenceGenerator
-
headerMarshaller
-
-
Constructor Details
-
CommandChannelSupport
public CommandChannelSupport(UdpTransport transport, OpenWireFormat wireFormat, int datagramSize, SocketAddress targetAddress, DatagramHeaderMarshaller headerMarshaller)
-
-
Method Details
-
write
- Throws:
IOException
-
getDatagramSize
public int getDatagramSize()- Specified by:
getDatagramSizein interfaceCommandChannel
-
setDatagramSize
public void setDatagramSize(int datagramSize) Sets the default size of a datagram on the network.- Specified by:
setDatagramSizein interfaceCommandChannel
-
getTargetAddress
-
setTargetAddress
- Specified by:
setTargetAddressin interfaceCommandChannel
-
getReplayAddress
-
setReplayAddress
- Specified by:
setReplayAddressin interfaceCommandChannel
-
toString
-
getHeaderMarshaller
- Specified by:
getHeaderMarshallerin interfaceCommandChannel
-
setHeaderMarshaller
- Specified by:
setHeaderMarshallerin interfaceCommandChannel
-
getReplayBuffer
-
setReplayBuffer
- Specified by:
setReplayBufferin interfaceCommandChannel
-