Interface LeasedResource


public interface LeasedResource
Server side representation of a lease
Since:
2.0
Author:
Sun Microsystems, Inc.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the universally unique identifier associated with this lease.
    long
    Returns the expiration time of the lease.
    void
    setExpiration(long newExpiration)
    Changes the expiration time of the lease.
  • Method Details

    • setExpiration

      void setExpiration(long newExpiration)
      Changes the expiration time of the lease.
      Parameters:
      newExpiration - The new expiration time in milliseconds since the beginning of the epoch
    • getExpiration

      long getExpiration()
      Returns the expiration time of the lease.
      Returns:
      The expiration time in milliseconds since the beginning of the epoch
    • getCookie

      Uuid getCookie()
      Returns the universally unique identifier associated with this lease. Any proxies for this lease that implement ReferentUuid should return this object from their getReferentUuid method and should base their implementation of equals on this object.