List of usage examples for com.google.common.base FinalizablePhantomReference subclass-usage
From source file org.opendaylight.controller.cluster.datastore.TransactionContextCleanup.java
/**
* A PhantomReference that closes remote transactions for a TransactionContext when it's
* garbage collected. This is used for read-only transactions as they're not explicitly closed
* by clients. So the only way to detect that a transaction is no longer in use and it's safe
* to clean up is when it's garbage collected. It's inexact as to when an instance will be GC'ed
* but TransactionProxy instances should generally be short-lived enough to avoid being moved
From source file org.opendaylight.controller.cluster.datastore.TransactionProxyCleanupPhantomReference.java
/**
* A PhantomReference that closes remote transactions for a TransactionProxy when it's
* garbage collected. This is used for read-only transactions as they're not explicitly closed
* by clients. So the only way to detect that a transaction is no longer in use and it's safe
* to clean up is when it's garbage collected. It's inexact as to when an instance will be GC'ed
* but TransactionProxy instances should generally be short-lived enough to avoid being moved