Package com.mongodb.internal.connection
Interface ConcurrentPool.ItemFactory<T>
-
- Type Parameters:
T
-
- Enclosing class:
- ConcurrentPool<T>
public static interface ConcurrentPool.ItemFactory<T>
Factory for creating and closing pooled items.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close(T t)
T
create(boolean initialize)
ConcurrentPool.Prune
shouldPrune(T t)
-
-
-
Method Detail
-
create
T create(boolean initialize)
-
close
void close(T t)
-
shouldPrune
ConcurrentPool.Prune shouldPrune(T t)
-
-