| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Consumer | |
| private final LinkedBlockingDeque | |
| private final Consumer | |
| private final Supplier |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PooledObject |
| consumer | back to summary |
|---|---|
| private final Consumer<T> consumer | |
| pool | back to summary |
|---|---|
| private final LinkedBlockingDeque<T> pool | |
| recycler | back to summary |
|---|---|
| private final Consumer<T> recycler | |
| supplier | back to summary |
|---|---|
| private final Supplier<T> supplier | |
| SimpleObjectPool | back to summary |
|---|---|
| public SimpleObjectPool(int poolSize, Supplier<T> supplier, Consumer<T> recycler, Consumer<T> consumer) | |
| SimpleObjectPool | back to summary |
|---|---|
| public SimpleObjectPool(int poolSize, Supplier<T> supplier, Consumer<T> consumer) | |
| allocate | back to summary |
|---|---|
| public PooledObject Implements io.
| |
| Modifier and Type | Field and Description |
|---|---|
| private volatile int | |
| private static final AtomicIntegerFieldUpdater | |
| private final T | |
| private final SimpleObjectPool |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements io. Closes this stream and releases any system resources associated with it. |
| public T |
| closed | back to summary |
|---|---|
| private volatile int closed | |
| closedUpdater | back to summary |
|---|---|
| private static final AtomicIntegerFieldUpdater<SimpleObjectPool. | |
| object | back to summary |
|---|---|
| private final T object | |
| objectPool | back to summary |
|---|---|
| private final SimpleObjectPool<T> objectPool | |
| SimplePooledObject | back to summary |
|---|---|
| pack-priv SimplePooledObject(T object, SimpleObjectPool<T> objectPool) | |
| close | back to summary |
|---|---|
| public void close() Implements io. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| getObject | back to summary |
|---|---|
| public T getObject() Implements io.
| |