org.apache.activemq.transport.udp
Interface CommandChannel

All Superinterfaces:
Replayer, Service
All Known Implementing Classes:
CommandChannelSupport, CommandDatagramChannel, CommandDatagramSocket

public interface CommandChannel
extends Replayer, Service


Method Summary
 int getDatagramSize()
           
 DatagramHeaderMarshaller getHeaderMarshaller()
           
 int getReceiveCounter()
           
 Command read()
           
 void setDatagramSize(int datagramSize)
          Sets the default size of a datagram on the network.
 void setHeaderMarshaller(DatagramHeaderMarshaller headerMarshaller)
           
 void setReplayAddress(SocketAddress address)
           
 void setReplayBuffer(ReplayBuffer replayBuffer)
           
 void setTargetAddress(SocketAddress address)
           
 void write(Command command, SocketAddress address)
           
 
Methods inherited from interface org.apache.activemq.transport.reliable.Replayer
sendBuffer
 
Methods inherited from interface org.apache.activemq.Service
start, stop
 

Method Detail

read

Command read()
             throws IOException
Throws:
IOException

write

void write(Command command,
           SocketAddress address)
           throws IOException
Throws:
IOException

getDatagramSize

int getDatagramSize()

setDatagramSize

void setDatagramSize(int datagramSize)
Sets the default size of a datagram on the network.


getHeaderMarshaller

DatagramHeaderMarshaller getHeaderMarshaller()

setHeaderMarshaller

void setHeaderMarshaller(DatagramHeaderMarshaller headerMarshaller)

setTargetAddress

void setTargetAddress(SocketAddress address)

setReplayAddress

void setReplayAddress(SocketAddress address)

setReplayBuffer

void setReplayBuffer(ReplayBuffer replayBuffer)

getReceiveCounter

int getReceiveCounter()


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.