org.apache.coyote
Class AbstractProtocol.RecycledProcessors<P extends Processor<S>,S>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
java.util.concurrent.ConcurrentLinkedQueue<Processor<S>>
org.apache.coyote.AbstractProtocol.RecycledProcessors<P,S>
- All Implemented Interfaces:
- Serializable, Iterable<Processor<S>>, Collection<Processor<S>>, Queue<Processor<S>>
- Enclosing class:
- AbstractProtocol
protected static class AbstractProtocol.RecycledProcessors<P extends Processor<S>,S>
- extends ConcurrentLinkedQueue<Processor<S>>
- See Also:
- Serialized Form
size
protected AtomicInteger size
AbstractProtocol.RecycledProcessors
public AbstractProtocol.RecycledProcessors(AbstractProtocol.AbstractConnectionHandler<S,P> handler)
offer
public boolean offer(Processor<S> processor)
- Specified by:
offer
in interface Queue<Processor<S>>
- Overrides:
offer
in class ConcurrentLinkedQueue<Processor<S>>
poll
public Processor<S> poll()
- Specified by:
poll
in interface Queue<Processor<S>>
- Overrides:
poll
in class ConcurrentLinkedQueue<Processor<S>>
clear
public void clear()
- Specified by:
clear
in interface Collection<Processor<S>>
- Overrides:
clear
in class AbstractQueue<Processor<S>>
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.