org.ros.internal.transport
Class OutgoingMessageQueue<T>
java.lang.Object
org.ros.internal.transport.OutgoingMessageQueue<T>
public class OutgoingMessageQueue<T>
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OutgoingMessageQueue
public OutgoingMessageQueue(MessageSerializer<T> serializer,
java.util.concurrent.ScheduledExecutorService executorService)
setLatchMode
public void setLatchMode(boolean enabled)
getLatchMode
public boolean getLatchMode()
put
public void put(T message)
- Parameters:
message
- the message to add to the queue
shutdown
public void shutdown()
- Stop writing messages and close all outgoing connections.
setLimit
public void setLimit(int limit)
- See Also:
CircularBlockingQueue.setLimit(int)
getLimit
public int getLimit()
- See Also:
CircularBlockingQueue.getLimit()
addChannel
public void addChannel(org.jboss.netty.channel.Channel channel)
- Parameters:
channel
- added to this OutgoingMessageQueue
's ChannelGroup
getNumberOfChannels
public int getNumberOfChannels()
- Returns:
- the number of
Channel
s which have been added to this queue