Skip navigation links
com.streamscape.lib.numalloc

Class ShortNumberAllocator

    • Constructor Detail

      • ShortNumberAllocator

        public ShortNumberAllocator()
        Constructs a new allocator.
    • Method Detail

      • getNumber

        public short getNumber()
                        throws NumberAllocatorException
        Returns an available (non-assigned) number from the pool.
        Returns:
        the available number.
        Throws:
        FabricException - if the pool does not contain available numbers.
        NumberAllocatorException
      • releaseNumber

        public void releaseNumber(short number)
        Releases the specified number (returns this number back into the pool).
        Parameters:
        number - the released number.

Copyright © 2015-2024 StreamScape Technologies. All rights reserved.