Class: IntegerPool

Guacamole.IntegerPool

new IntegerPool()

Integer pool which returns consistently increasing integers while integers are in use, and previously-used integers when possible.
Source:

Members

next_int :Number

The next integer to return if no more integers remain.
Type:
  • Number
Source:

Methods

free(integer)

Frees the given integer, allowing it to be reused.
Parameters:
Name Type Description
integer Number The integer to free.
Source:

next() → {Number}

Returns the next available integer in the pool. If possible, a previously used integer will be returned.
Source:
Returns:
The next available integer.
Type
Number