public final class Liveness extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG_MODE_ENABLED |
static com.fishlib.io.logger.Logger |
log |
Modifier and Type | Method and Description |
---|---|
static void |
scheduleCountReport(com.fishlib.io.sched.Scheduler scheduler) |
static boolean |
verifyCachedObjectForReuse(Object object)
Determine whether a cached object should be reused, w.r.t.
|
public static final com.fishlib.io.logger.Logger log
public static final boolean DEBUG_MODE_ENABLED
public static void scheduleCountReport(@NotNull com.fishlib.io.sched.Scheduler scheduler)
public static boolean verifyCachedObjectForReuse(Object object)
Determine whether a cached object should be reused, w.r.t. liveness. Null inputs are never safe for reuse.
If the object is a LivenessReferent
and not a non-refreshing DynamicNode
, this method will
return the result of trying to manage object with the top of the current thread's LivenessScopeStack
.
object
- The object