Class SimonRefQueue<T extends SimonPhantomRef>

java.lang.Object
java.lang.ref.ReferenceQueue<T>
host.anzo.simon.SimonRefQueue<T>
Type Parameters:
T - type of SimonPhantomRef
All Implemented Interfaces:
Runnable

public class SimonRefQueue<T extends SimonPhantomRef> extends ReferenceQueue<T> implements Runnable
A ReferenceQueue that tracks lifetime of SimonProxy objects. If proxy is GC'ed, a message is sent to remote to signal that the reference-count can be decreased by 1.
Since:
1.2.0
  • Method Details

    • addRef

      public void addRef(SimonProxy simonProxy)
    • run

      public void run()
      Specified by:
      run in interface Runnable