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:
java.io.Serializable, java.lang.Iterable<P>, java.util.Collection<P>, java.util.Queue<P>
Enclosing class:
AbstractProtocol

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

See Also:
Serialized Form

Field Summary
protected  java.util.concurrent.atomic.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 java.util.concurrent.atomic.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 java.util.Queue<P extends AbstractProcessor<S>>
Overrides:
offer in class java.util.concurrent.ConcurrentLinkedQueue<P extends AbstractProcessor<S>>

poll

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

clear

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

Apache Tomcat 7.0.23

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