org.eclipse.spi.net4j
Class Channel.SendQueue

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractQueue<E>
          extended by java.util.concurrent.ConcurrentLinkedQueue<IBuffer>
              extended by org.eclipse.spi.net4j.Channel.SendQueue
All Implemented Interfaces:
Serializable, Iterable<IBuffer>, Collection<IBuffer>, Queue<IBuffer>
Enclosing class:
Channel

protected class Channel.SendQueue
extends ConcurrentLinkedQueue<IBuffer>

A queue that holds buffers that shall be sent. This implementation notifies observers of enqueued and dequeued buffers. The notification's deliberately not synchronized. It shall only be used by O&M tooling to offer (not 100% accurate) statistical insights

Since:
3.0
See Also:
Serialized Form

Constructor Summary
protected Channel.SendQueue()
           
 
Method Summary
 boolean add(IBuffer o)
           
 boolean offer(IBuffer o)
           
 IBuffer poll()
           
 IBuffer remove()
           
 boolean remove(Object o)
           
 
Methods inherited from class java.util.concurrent.ConcurrentLinkedQueue
contains, isEmpty, iterator, peek, size, toArray, toArray
 
Methods inherited from class java.util.AbstractQueue
addAll, clear, element
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Queue
element
 
Methods inherited from interface java.util.Collection
addAll, clear, containsAll, equals, hashCode, removeAll, retainAll
 

Constructor Detail

Channel.SendQueue

protected Channel.SendQueue()
Method Detail

add

public boolean add(IBuffer o)
Specified by:
add in interface Collection<IBuffer>
Specified by:
add in interface Queue<IBuffer>
Overrides:
add in class ConcurrentLinkedQueue<IBuffer>

offer

public boolean offer(IBuffer o)
Specified by:
offer in interface Queue<IBuffer>
Overrides:
offer in class ConcurrentLinkedQueue<IBuffer>

poll

public IBuffer poll()
Specified by:
poll in interface Queue<IBuffer>
Overrides:
poll in class ConcurrentLinkedQueue<IBuffer>

remove

public IBuffer remove()
Specified by:
remove in interface Queue<IBuffer>
Overrides:
remove in class AbstractQueue<IBuffer>

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection<IBuffer>
Overrides:
remove in class ConcurrentLinkedQueue<IBuffer>


Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.