Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.jini.landlord
Interface LeasedResource

All Known Subinterfaces:
  StorableResource

public interface LeasedResource

Server side representation of a lease

Since:
  2.0
See Also:
  `LeasePeriodPolicy`

Method Summary
`Uuid` | `getCookie()` Returns the universally unique identifier associated with this lease.
`long` | `getExpiration()` Returns the expiration time of the lease.
`void` | `setExpiration(long newExpiration)` Changes the expiration time of the lease.

Method Detail

### setExpiration

    public 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

    public long getExpiration()

  Returns the expiration time of the lease.

  Returns:
    The expiration time in milliseconds since the beginning of the epoch

### getCookie

    public 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 Sun Microsystems, Inc. All rights reserved