private class AbstractDgcClient.EndpointEntry.RefEntry extends Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
AbstractDgcClient.EndpointEntry.RefEntry.PhantomLiveRef
PhantomLiveRef is a PhantomReference to a live reference
instance, used to detect when the particular live reference
becomes permanently unreachable in this VM.
|
Modifier and Type | Field and Description |
---|---|
private boolean |
dirtyFailed
true if a dirty call containing this ref has failed
|
private Object |
objectID
the object ID that this RefEntry is for (the endpoint is
implied by the outer EndpointEntry instance)
|
private Set |
refSet
set of phantom references to registered instances
|
Constructor and Description |
---|
AbstractDgcClient.EndpointEntry.RefEntry(Object objectID) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addInstanceToRefSet(Object ref)
Adds a live reference to the set of registered instances for
this entry.
|
(package private) Object |
getObjectID()
Returns the object ID that this entry is for.
|
(package private) boolean |
hasDirtyFailed()
Returns true if a dirty call that explicitly contained this
entry's ref value has failed (and therefore a clean call for
the ref value needs to be marked "strong").
|
(package private) boolean |
isRefSetEmpty()
Returns true if there are no registered live reference
instances for this entry still reachable in this VM.
|
(package private) void |
markDirtyFailed()
Records that a dirty call that explicitly contained this
entry's ref value has failed.
|
(package private) void |
removeInstanceFromRefSet(AbstractDgcClient.EndpointEntry.RefEntry.PhantomLiveRef phantom)
Removes a PhantomLiveRef from the set of registered instances.
|
private final Object objectID
private final Set refSet
private boolean dirtyFailed
AbstractDgcClient.EndpointEntry.RefEntry(Object objectID)
Object getObjectID()
void addInstanceToRefSet(Object ref)
void removeInstanceFromRefSet(AbstractDgcClient.EndpointEntry.RefEntry.PhantomLiveRef phantom)
boolean isRefSetEmpty()
void markDirtyFailed()
boolean hasDirtyFailed()
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.