Reclaimable class
@fileoverview Implements the reclaimable interface. The reclaim() method is used to clean up references and resources. Based on Closure Library's equivalent.
- Inheritance
- Implemented types
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
assertNotReclaimed(
) → void -
override
-
assertReclaimed(
) → void -
override
-
beforeReclaim(
) → Future< Null> -
Performs preparation for reclaim on all owned reclaimables once, then reclaims this object.
override
-
beforeReclaimInternal(
) → Future< Null> - Provide asynchronous behaviour which must execute before reclaim.
-
getId(
) → String -
Gets the unique ID for the instance of this component. If the instance
doesn't already have an ID, generates one on the fly.
@return {string} Unique component ID.
inherited
-
isNotReclaimed(
) → bool -
@return {bool} Whether the object has not been reclaimed of.
@override
override
-
isReclaimed(
) → bool -
@return {bool} Whether the object has been reclaimed of.
@override
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reclaim(
) → void -
Reclaims of the object. If the object hasn't already been reclaimed of, calls
{@link #reclaimInternal}. Classes that extend {@code goog.Reclaimable} should
override {@link #reclaimInternal} in order to delete references to COM
objects, DOM nodes, and other reclaimable objects. Reentrant.
override
-
reclaimInternal(
) → void - Overridable
-
registerReclaimable(
IReclaimable reclaimable) → void -
Chains together objects, so when over is reclaimed, children are reclaimed
override
-
toString(
) → String -
A string representation of this object.
inherited
-
unregisterReclaimable(
IReclaimable reclaimable) → void -
override
-
waitUntilReclaimed<
T> (Future< T> future) → Future<T> - Disconnects the future from the the thread on this object if the object is reclaimed.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
reclaimAll(
Iterable< IReclaimable> reclaimables) → void - Reclaim iterable of reclaimables. Convenience method.