Package com.j_spaces.kernel
Interface IReusableResourcePool<T>
- All Known Implementing Classes:
RwlLocksPool
public interface IReusableResourcePool<T>
Defines an interface for a pool of reusable resources. Each resource can used simultaneously by
several users and therefore doesn't need to be freed. Suitable for concurrent resources like
locks.
- Since:
- 6.6
- Version:
- 1.0
- Author:
- anna
-
Method Summary
-
Method Details
-
getResource
T getResource()- Returns:
- one of the resources in the pool
-
getResource
- Returns:
- specific resource from the pool
-
size
int size()- Returns:
- pool size
-