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

    Modifier and Type
    Method
    Description
     
    getResource(int index)
     
    int
     
  • Method Details

    • getResource

      T getResource()
      Returns:
      one of the resources in the pool
    • getResource

      T getResource(int index)
      Returns:
      specific resource from the pool
    • size

      int size()
      Returns:
      pool size