Class AbstractProtocol.RecycledProcessors
java.lang.Object
org.apache.tomcat.util.collections.SynchronizedStack<Processor>
org.apache.coyote.AbstractProtocol.RecycledProcessors
- Enclosing class:
AbstractProtocol<S>
-
Field Summary
FieldsFields inherited from class SynchronizedStack
DEFAULT_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionRecycledProcessors(AbstractProtocol.ConnectionHandler<?> handler) Creates a new recycled processors pool. -
Method Summary
Methods inherited from class SynchronizedStack
setLimit
-
Field Details
-
size
-
-
Constructor Details
-
RecycledProcessors
Creates a new recycled processors pool.- Parameters:
handler- The connection handler
-
-
Method Details
-
push
Pushes a processor to the pool.- Overrides:
pushin classSynchronizedStack<Processor>- Parameters:
processor- The processor- Returns:
trueif the processor was pushed
-
pop
Pops a processor from the pool.- Overrides:
popin classSynchronizedStack<Processor>- Returns:
- the processor or null if empty
-
clear
public void clear()Clears the recycled processors pool.- Overrides:
clearin classSynchronizedStack<Processor>
-