Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.rmi.dgc
Interface DGC  view DGC download DGC.java

All Superinterfaces:
java.rmi.Remote

public interface DGC
extends java.rmi.Remote

The DGC implementation is used for the server side during the distributed garbage collection. This interface contains the two methods: dirty and clean. A dirty call is made when a remote reference is unmarshaled in a client. A corresponding clean call is made by client it no longer uses that remote reference. A reference to a remote object is also automatically released after so called lease period that starts after the dirty call is received. It is the client's responsibility to renew the leases, by making additional dirty calls before such leases expire.


Method Summary
 void clean(java.rmi.server.ObjID[] ids, long sequenceNum, VMID vmid, boolean strong)
          Mark the given objects as no longer used on the client side.
 Lease dirty(java.rmi.server.ObjID[] ids, long sequenceNum, Lease lease)
          Mark the given objects referecnes as used on the client side.
 

Method Detail

dirty

public Lease dirty(java.rmi.server.ObjID[] ids,
                   long sequenceNum,
                   Lease lease)
            throws java.rmi.RemoteException
Mark the given objects referecnes as used on the client side.


clean

public void clean(java.rmi.server.ObjID[] ids,
                  long sequenceNum,
                  VMID vmid,
                  boolean strong)
           throws java.rmi.RemoteException
Mark the given objects as no longer used on the client side.