Class CommandChannelSupport
java.lang.Object
org.apache.activemq.transport.udp.CommandChannelSupport
- All Implemented Interfaces:
Service
,Replayer
,CommandChannel
- Direct Known Subclasses:
CommandDatagramChannel
,CommandDatagramSocket
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected DatagramHeaderMarshaller
protected final String
protected SocketAddress
protected final IntSequenceGenerator
protected SocketAddress
protected OpenWireFormat
-
Constructor Summary
ConstructorDescriptionCommandChannelSupport
(UdpTransport transport, OpenWireFormat wireFormat, int datagramSize, SocketAddress targetAddress, DatagramHeaderMarshaller headerMarshaller) -
Method Summary
Modifier and TypeMethodDescriptionint
void
setDatagramSize
(int datagramSize) Sets the default size of a datagram on the network.void
setHeaderMarshaller
(DatagramHeaderMarshaller headerMarshaller) void
setReplayAddress
(SocketAddress replayAddress) void
setReplayBuffer
(ReplayBuffer replayBuffer) void
setTargetAddress
(SocketAddress targetAddress) toString()
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.activemq.transport.udp.CommandChannel
getReceiveCounter, read, write
Methods 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:
getDatagramSize
in interfaceCommandChannel
-
setDatagramSize
public void setDatagramSize(int datagramSize) Sets the default size of a datagram on the network.- Specified by:
setDatagramSize
in interfaceCommandChannel
-
getTargetAddress
-
setTargetAddress
- Specified by:
setTargetAddress
in interfaceCommandChannel
-
getReplayAddress
-
setReplayAddress
- Specified by:
setReplayAddress
in interfaceCommandChannel
-
toString
-
getHeaderMarshaller
- Specified by:
getHeaderMarshaller
in interfaceCommandChannel
-
setHeaderMarshaller
- Specified by:
setHeaderMarshaller
in interfaceCommandChannel
-
getReplayBuffer
-
setReplayBuffer
- Specified by:
setReplayBuffer
in interfaceCommandChannel
-