org.ros.internal.transport
Class IncomingMessageQueue<T>

java.lang.Object
  extended by org.ros.internal.transport.IncomingMessageQueue<T>

public class IncomingMessageQueue<T>
extends java.lang.Object


Constructor Summary
IncomingMessageQueue(MessageDeserializer<T> deserializer, java.util.concurrent.ScheduledExecutorService executorService)
           
 
Method Summary
 void addListener(MessageListener<T> listener)
           
 boolean getLatchMode()
           
 int getLimit()
           
 org.jboss.netty.channel.ChannelHandler newChannelHandler()
           
 void removeListener(MessageListener<T> listener)
           
 void setLatchMode(boolean enabled)
           
 void setLimit(int limit)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncomingMessageQueue

public IncomingMessageQueue(MessageDeserializer<T> deserializer,
                            java.util.concurrent.ScheduledExecutorService executorService)
Method Detail

setLatchMode

public void setLatchMode(boolean enabled)

getLatchMode

public boolean getLatchMode()

addListener

public void addListener(MessageListener<T> listener)

removeListener

public void removeListener(MessageListener<T> listener)

shutdown

public void shutdown()

setLimit

public void setLimit(int limit)
See Also:
CircularBlockingQueue.setLimit(int)

getLimit

public int getLimit()
See Also:
CircularBlockingQueue.getLimit()

newChannelHandler

public org.jboss.netty.channel.ChannelHandler newChannelHandler()
Returns:
a new ChannelHandler that will receive messages and add them to the queue