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 voidclose(T t)Tcreate(boolean initialize)ConcurrentPool.PruneshouldPrune(T t)
-
-
-
Method Detail
-
create
T create(boolean initialize)
-
close
void close(T t)
-
shouldPrune
ConcurrentPool.Prune shouldPrune(T t)
-
-