Interface Pool<T>
- All Known Subinterfaces:
LettucePool
- All Known Implementing Classes:
DefaultLettucePool
public interface Pool<T>
Pool of resources
- Author:
- Jennifer Hickey
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Destroys the poolvoid
returnBrokenResource
(T resource) void
returnResource
(T resource)
-
Method Details
-
getResource
T getResource()- Returns:
- A resource, if available
-
returnBrokenResource
- Parameters:
resource
- A broken resource that should be invalidated
-
returnResource
- Parameters:
resource
- A resource to return to the pool
-
destroy
void destroy()Destroys the pool
-