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

Quick Search    Search Deep

com.fetish.directory.tool
Interface FetishLease  view FetishLease download FetishLease.java

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
FetishLeaseImpl

public interface FetishLease
extends java.rmi.Remote

Interface for the Fetish leases. Fetish leases wrap Jini leases and modifies their behavior to make the FADA aware of lease renewal and cancellation.


Method Summary
 void cancel()
          Cancel this Fetish lease.
 long renew(long duration)
          Renew this Fetish lease for the specified amount of milliseconds.
 

Method Detail

cancel

public void cancel()
            throws java.rmi.RemoteException,
                   UnknownLeaseException
Cancel this Fetish lease. The service proxy associated with this FetishLease will be deleted from both the FADA registry and the underlying Jini registry.


renew

public long renew(long duration)
           throws java.rmi.RemoteException,
                  UnknownLeaseException,
                  LeaseDeniedException
Renew this Fetish lease for the specified amount of milliseconds. Tries to obtain a Fetish lease of the requested duration. It is safe to call this method with Lease.ANY as a parameter, meaning to get a lease time at the Jini Lookup Service will.