Class LivenessScope
java.lang.Object
com.illumon.util.referencecounting.ReferenceCounted
com.illumon.iris.db.util.liveness.ReferenceCountedLivenessNode
com.illumon.iris.db.util.liveness.LivenessScope
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable,LivenessManager,LivenessNode,LivenessReferent,ReleasableLivenessManager,Serializable
public class LivenessScope extends ReferenceCountedLivenessNode implements ReleasableLivenessManager
LivenessNode implementation for providing external scope to one or more LivenessReferents.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description LivenessScope()Construct a new scope, which must berelease()d in order to release any subsequently addedLivenessReferents. -
Method Summary
Modifier and Type Method Description voidrelease()Release all referents previously added to this scope in its capacity as aLivenessManager, unless other references to this scope are retained in its capacity as aLivenessReferent.voidtransferTo(LivenessManager other)Methods inherited from class com.illumon.iris.db.util.liveness.ReferenceCountedLivenessNode
destroy, dropReference, getWeakReference, initializeTransientFieldsForLiveness, onReferenceCountAtZero, tryManage, tryRetainReferenceMethods inherited from class com.illumon.util.referencecounting.ReferenceCounted
append, decrementReferenceCount, incrementReferenceCount, resetReferenceCount, toString, tryDecrementReferenceCount, tryIncrementReferenceCountMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.illumon.iris.db.util.liveness.LivenessManager
manage, tryManageMethods inherited from interface com.illumon.iris.db.util.liveness.LivenessReferent
getReferentDescription, retainReference
-
Constructor Details
-
LivenessScope
public LivenessScope()Construct a new scope, which must berelease()d in order to release any subsequently addedLivenessReferents.
-
-
Method Details
-
transferTo
Transfer all retainedLivenessReferents from thisLivenessScopeto a compatibleLivenessManager. Transfer support compatibility is implementation defined.- Parameters:
other- The otherLivenessManager
-
release
public final void release()Release all referents previously added to this scope in its capacity as aLivenessManager, unless other references to this scope are retained in its capacity as aLivenessReferent.- Specified by:
releasein interfaceReleasableLivenessManager
-