Class Liveness
java.lang.Object
com.illumon.iris.db.util.liveness.Liveness
public final class Liveness extends Object
Utility class for liveness-related instrumentation.
-
Field Summary
Fields Modifier and Type Field Description static booleanDEBUG_MODE_ENABLEDstatic com.fishlib.io.logger.Loggerlog -
Method Summary
Modifier and Type Method Description static voidscheduleCountReport(com.fishlib.io.sched.Scheduler scheduler)static booleanverifyCachedObjectForReuse(Object object)Determine whether a cached object should be reused, w.r.t.
-
Field Details
-
log
public static final com.fishlib.io.logger.Logger log -
DEBUG_MODE_ENABLED
public static final boolean DEBUG_MODE_ENABLED
-
-
Method Details
-
scheduleCountReport
public static void scheduleCountReport(@NotNull com.fishlib.io.sched.Scheduler scheduler) -
verifyCachedObjectForReuse
Determine whether a cached object should be reused, w.r.t. liveness. Null inputs are never safe for reuse. If the object is a
LivenessReferentand not a non-refreshingDynamicNode, this method will return the result of trying to manage object with the top of the current thread'sLivenessScopeStack.- Parameters:
object- The object- Returns:
- True if the object did not need management, or if it was successfully managed, false otherwise
-