PoolResource<T> class abstract

Constructors

PoolResource.new(T resource)

Properties

createTime DateTime
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
resource ↔ T
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onRelease(Object error, StackTrace stackTrace) FutureOr<void>
If operation on resource throws an exception, this method will be called to release any system resource such io, socket, binding with the resource. Then discard this resource.
onReset() FutureOr<void>
Reset the resource state when the resource is returned.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited