Package ej.sni

Class PoolOfLimitedReusableResources

    • Constructor Detail

      • PoolOfLimitedReusableResources

        public PoolOfLimitedReusableResources​(int maxNbResources,
                                              int allocationSize)
        Allocate a new pool of resources
        Parameters:
        maxNbResources - 0 (i.e. unlimited) is not allowed.
        allocationSize - size of allocated resources (in bytes). 0 (i.e. unlimited) is not allowed.
    • Method Detail

      • getAllocationSize

        public int getAllocationSize()
        Return size of allocated resources (in bytes).
        Returns:
        size of allocated resources (in bytes).