T - The type of object managed by this stackAbstractProtocol.RecycledProcessorspublic class SynchronizedStack<T>
extends java.lang.Object
ConcurrentLinkedQueue when the requirement is to
create a pool of re-usable objects with no requirement to shrink the pool.
The aim is to provide the bare minimum of required functionality as quickly
as possible with minimum garbage.| Modifier and Type | Field | Description |
|---|---|---|
static int |
DEFAULT_SIZE |
| Constructor | Description |
|---|---|
SynchronizedStack() |
|
SynchronizedStack(int size,
int limit) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
|
T |
pop() |
|
boolean |
push(T obj) |
public static final int DEFAULT_SIZE
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.