com.linar.jintegra
Interface Unreferenced


public interface Unreferenced

When a COM client holds a reference to a Java object, the J-Integra® runtime maintains a reference inside the JVM to that Java object on behalf of the COM client. It also keeps count of the number of COM references exported to that Java object and releases its reference when the COM reference count reaches zero.

When running in DCOM mode, J-Integra® receives DCOM ping messages informing it that a COM client is still alive. If no such ping messages are received for six minutes (per the DCOM specification) then the J-Integra® runtime releases all unpinged Java objects.

If you wish to be notified when Java objects are no longer referenced by COM clients, you can call the following method passing in a reference to an instance of a Java class you create that implements this com.linar.jintegra.Unreferenced interface. This is the method you call:

com.linar.jintegra.Cleaner.addUnreferencedListener(com.linar.jintegra.Unreferenced listener)

public static void removeUnreferencedListener(Unreferenced listener)


Method Summary
 void objectUnreferenced(java.lang.Object o)
          This method is called when an object is no longer referenced.
 

Method Detail

objectUnreferenced

void objectUnreferenced(java.lang.Object o)
This method is called when an object is no longer referenced.

Parameters:
o - the object which is no longer referenced.