Package ej.sni

Class PoolOfImmortalByteBuffers

    • Constructor Detail

      • PoolOfImmortalByteBuffers

        public PoolOfImmortalByteBuffers​(int maxNbResources,
                                         int allocationSize)
        Allocate a new pool of Immortals byte buffer resources
        Parameters:
        maxNbResources - a strictly positive integer giving the maximum number of allocated resources, or 0 if an unlimited number of resources is allowed
        allocationSize - size of allocated resources (in bytes). 0 (i.e. unlimited) is not allowed.