Universal dynamic resource pool. Allows to reuse PooledResource objects created with ResourceFactory

  • Pool
    • Basic
      • Identifiable
      • Object
        • Anything

no subtypes hierarchy

Initializer
Pool(ResourceFactory<out Resource> factory, Float expirationTime = ...)
Parameters:
  • factory

    Object that creates actual resources in the pool

  • expirationTime = 60.0

    Time in seconds from last resource usage to it's removing

Attributes
sizeshared Integer size
Inherited Attributes
Attributes inherited from: Object
hash, string
Methods
getResourceshared Resource getResource()
Inherited Methods
Methods inherited from: Object
equals