public class IncDecRefCountQueue extends Object
Modifier and Type | Field and Description |
---|---|
protected static long |
INC_DEC_REF_COUNT_PERIOD_MS
How often to we notify the other side that an object is actually used (by invoking
ObjectManager.incRefCount(Object, Uid)
on the other side). |
Constructor and Description |
---|
IncDecRefCountQueue(Invoker invoker) |
Modifier and Type | Method and Description |
---|---|
void |
decRefCount(ObjectRef objectRef,
Uid refId) |
void |
incRefCount(ObjectRef objectRef,
Uid refId) |
protected static final long INC_DEC_REF_COUNT_PERIOD_MS
ObjectManager.incRefCount(Object, Uid)
on the other side).
For performance reasons, we do not perform one increment-reference-RPC per object, but rather collect them here for a while and do one remote-procedure-call for all that occurred during this time period.
This period must be significantly shorter than the corresponding timeout
ObjectManager.EVICT_ZERO_REFERENCE_OBJECT_REFS_TIMEOUT_MS
!
public IncDecRefCountQueue(Invoker invoker)
public void incRefCount(ObjectRef objectRef, Uid refId)
public void decRefCount(ObjectRef objectRef, Uid refId)
Copyright © 2013–2019. All rights reserved.