com.sun.jini.landlord
Interface LeasedResource

All Known Subinterfaces:
StorableResource

public interface LeasedResource

Server side representation of a lease

Since:
2.0
Author:
Sun Microsystems, Inc.
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

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.



Copyright 2007, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.