Package org.ros.internal.transport.queue
Class OutgoingMessageQueue<T>
java.lang.Object
org.ros.internal.transport.queue.OutgoingMessageQueue<T>
- Author:
- damonkohler@google.com (Damon Kohler)
-
Constructor Summary
ConstructorsConstructorDescriptionOutgoingMessageQueue(org.ros.message.MessageSerializer<T> serializer, ExecutorService executorService) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddChannel(org.jboss.netty.channel.Channel channel) org.jboss.netty.channel.group.ChannelGroupbooleanintvoidsetLatchMode(boolean enabled) voidshutdown()Stop writing messages and close all outgoing connections.
-
Constructor Details
-
OutgoingMessageQueue
public OutgoingMessageQueue(org.ros.message.MessageSerializer<T> serializer, ExecutorService executorService)
-
-
Method Details
-
setLatchMode
public void setLatchMode(boolean enabled) -
getLatchMode
public boolean getLatchMode() -
add
- Parameters:
message- the message to add to the queue
-
shutdown
public void shutdown()Stop writing messages and close all outgoing connections. -
addChannel
public void addChannel(org.jboss.netty.channel.Channel channel) - Parameters:
channel- added to thisOutgoingMessageQueue'sChannelGroup
-
getNumberOfChannels
public int getNumberOfChannels()- Returns:
- the number of
Channels which have been added to this queue
-
getChannelGroup
public org.jboss.netty.channel.group.ChannelGroup getChannelGroup()
-