| |
|
| java.lang.Object org.ozoneDB.core.DbRemote.ProxyObjectGate
ProxyObjectGate | public class ProxyObjectGate (Code) | | A gate for Proxy objects. Every Proxy which leaves the Database should wander
through a ProxyObjectGate to be registered (so that the objects referenced by such a Proxy
are known to be referenced and thus reachable).
Every Proxy which left the Database, was registered and is now known to be unreachable should
sign itself off exactly one time.
author: Medium.net |
Constructor Summary | |
protected | ProxyObjectGate() Creates a new ProxyObjectGate. |
garbageCollectorToBeNotifiedOfExportedReferences | protected GarbageCollector garbageCollectorToBeNotifiedOfExportedReferences(Code) | | |
objectsReferencesByClient | protected HashMap objectsReferencesByClient(Code) | | This is a Mapping from
ObjectID to Integer. It represents the
count of references this client holds to the database object represented by the objectID.
Entries have to be added when returning
OzoneProxy s directly or indirectly.
Entries have to be removed if a {#link OzoneProxy} is finalize()d on the client side.
This way, the ozoneDB always know which objects are referenced and thus have to be
considered reachable, even if they were not reachable internally.
|
one | final protected static Integer one(Code) | | This is an Integer which represents the number "1".
|
ProxyObjectGate | protected ProxyObjectGate()(Code) | | Creates a new ProxyObjectGate.
|
addObjectReferencedByClient | public void addObjectReferencedByClient(OzoneProxy proxy)(Code) | | |
removeObjectReferencedByClient | protected void removeObjectReferencedByClient(OzoneProxy proxy)(Code) | | |
removeObjectReferencedByClient | protected void removeObjectReferencedByClient(ObjectID id)(Code) | | |
startFilterDatabaseObjectReferencesExports | public void startFilterDatabaseObjectReferencesExports(GarbageCollector garbageCollector)(Code) | | Starts filtering references to database objects (
OzoneProxy s) which
are exported to the client.
Every reference which is exported will be notified to the given GarbageCollector.
Additionally, references which are known to be used by the client are notified to the
given GarbageCollector within this call.
|
|
|
|