java.lang.Object
org.elasticsearch.core.AbstractRefCounted
org.elasticsearch.core.SimpleRefCounted
- All Implemented Interfaces:
RefCounted
RefCounted which does nothing when all references are released. It is the responsibility of the caller
to run whatever release logic should be executed when AbstractRefCounted.decRef() returns true.-
Field Summary
Fields inherited from class org.elasticsearch.core.AbstractRefCounted
ALREADY_CLOSED_MESSAGE, INVALID_DECREF_MESSAGEFields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidMethod that is invoked once the reference count reaches zero.Methods inherited from class org.elasticsearch.core.AbstractRefCounted
alreadyClosed, decRef, hasReferences, incRef, mustIncRef, of, refCount, touch, tryIncRef
-
Constructor Details
-
SimpleRefCounted
public SimpleRefCounted()
-
-
Method Details
-
closeInternal
protected void closeInternal()Description copied from class:AbstractRefCountedMethod that is invoked once the reference count reaches zero. Implementations of this method must handle all exceptions and may not throw any exceptions.- Specified by:
closeInternalin classAbstractRefCounted
-