ObjectPool<T extends PoolObject<V>, V> class
abstract
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
totalFree
→ int
-
The amount of objects that are free to use in the pool.
no setter
-
totalSize
→ int
-
The total amount of the objects in the pool.
no setter
-
totalUsed
→ int
-
The amount of objects that are in use in the pool.
no setter
Methods
-
acquire([V? data])
→ T
-
Acquire a new object.
-
builder()
→ T
-
Builder for creating a new instance of a PoolObject.
-
expand(int count)
→ void
-
Expand the existing pool by the given count.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
release(T item)
→ void
-
Release a object back into the pool.
-
toString()
→ String
-
A string representation of this object.
inherited
Operators
-
operator ==(Object other)
→ bool
-
The equality operator.
inherited