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 TypeMethodDescriptionvoiddestroy()Destroys the poolvoidreturnBrokenResource(T resource) voidreturnResource(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
-