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
- Direct Known Subclasses:
ParameterizedQueryServerImpl.ParameterizedQueryServerLivenessScope
public class LivenessScope
extends ReferenceCountedLivenessNode
implements ReleasableLivenessManager
LivenessNode
implementation for providing external scope to one or more LivenessReferent
s.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new scope, which must berelease()
d in order to release any subsequently addedLivenessReferent
s. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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
.final void
transferTo
(LivenessManager other) Methods inherited from class com.illumon.iris.db.util.liveness.ReferenceCountedLivenessNode
destroy, dropReference, getWeakReference, initializeTransientFieldsForLiveness, onReferenceCountAtZero, tryManage, tryRetainReference
Methods inherited from class com.illumon.util.referencecounting.ReferenceCounted
append, decrementReferenceCount, incrementReferenceCount, resetReferenceCount, toString, tryDecrementReferenceCount, tryIncrementReferenceCount
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.illumon.iris.db.util.liveness.LivenessManager
manage, tryManage
Methods 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 addedLivenessReferent
s.
-
-
Method Details
-
transferTo
Transfer all retainedLivenessReferent
s from thisLivenessScope
to 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:
release
in interfaceReleasableLivenessManager
-