Apache Tomcat 7.0.23

org.apache.coyote
Class AbstractProtocol.RecycledProcessors<P extends AbstractProcessor<S>,S>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractQueue<E>
          extended by java.util.concurrent.ConcurrentLinkedQueue<P>
              extended by org.apache.coyote.AbstractProtocol.RecycledProcessors<P,S>
All Implemented Interfaces:
Serializable, Iterable<P>, Collection<P>, Queue<P>
Enclosing class:
AbstractProtocol

protected static class AbstractProtocol.RecycledProcessors<P extends AbstractProcessor<S>,S>
extends ConcurrentLinkedQueue<P>

See Also:
Serialized Form

Field Summary
protected  AtomicInteger size
           
 
Constructor Summary
AbstractProtocol.RecycledProcessors(AbstractProtocol.AbstractConnectionHandler<S,P> handler)
           
 
Method Summary
 void clear()
           
 boolean offer(P processor)
           
 P poll()
           
 
Methods inherited from class java.util.concurrent.ConcurrentLinkedQueue
add, contains, isEmpty, iterator, peek, remove, size, toArray, toArray
 
Methods inherited from class java.util.AbstractQueue
addAll, element, remove
 
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, remove
 
Methods inherited from interface java.util.Collection
addAll, containsAll, equals, hashCode, removeAll, retainAll
 

Field Detail

size

protected AtomicInteger size
Constructor Detail

AbstractProtocol.RecycledProcessors

public AbstractProtocol.RecycledProcessors(AbstractProtocol.AbstractConnectionHandler<S,P> handler)
Method Detail

offer

public boolean offer(P processor)
Specified by:
offer in interface Queue<P extends AbstractProcessor<S>>
Overrides:
offer in class ConcurrentLinkedQueue<P extends AbstractProcessor<S>>

poll

public P poll()
Specified by:
poll in interface Queue<P extends AbstractProcessor<S>>
Overrides:
poll in class ConcurrentLinkedQueue<P extends AbstractProcessor<S>>

clear

public void clear()
Specified by:
clear in interface Collection<P extends AbstractProcessor<S>>
Overrides:
clear in class AbstractQueue<P extends AbstractProcessor<S>>

Apache Tomcat 7.0.23

Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.