public class Pool<T> extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
Pool.Recycler<T>
A Recycler puts objects into the pool that the recycler is associated with.
|
| 构造器和说明 |
|---|
Pool(int poolCapacity)
Creates a pool with the given capacity.
|
public Pool(int poolCapacity)
public Pool.Recycler<T> recycler()
public void add(T object)
public T pollEntry() throws InterruptedException
Copyright © 2023 The Apache Software Foundation. All rights reserved.