public class ThreadObjectPool<T> extends Object
Constructor and Description |
---|
ThreadObjectPool() |
ThreadObjectPool(int threadPoolSize) |
ThreadObjectPool(int threadPoolSize,
Supplier<T> supplier) |
Modifier and Type | Method and Description |
---|---|
T |
get(Supplier<T> supplier) |
RingBuffer<T> |
getPool() |
int |
getThreadPoolSize() |
void |
release(T t,
Consumer<T> destory) |
Copyright © 2020 Voovan. All rights reserved.