com.sun.jini.jeri.internal.runtime
Class Lease

java.lang.Object
  extended by com.sun.jini.jeri.internal.runtime.Lease

 class Lease
extends Object

Since:
2.2.0
Author:
Peter Firmstone.

Field Summary
private  Uuid clientID
           
private  long expiration
           
private  boolean lockForRemoval
           
private  Set<Target> notifySet
           
 
Constructor Summary
Lease(Uuid clientID, long duration)
           
 
Method Summary
(package private)  boolean add(Target target)
           
(package private)  Uuid getClientID()
           
(package private)  boolean notifyIfExpired(long now)
           
(package private)  void remove(Target target)
           
(package private)  boolean renew(long duration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clientID

private final Uuid clientID

notifySet

private final Set<Target> notifySet

expiration

private long expiration

lockForRemoval

private volatile boolean lockForRemoval
Constructor Detail

Lease

Lease(Uuid clientID,
      long duration)
Method Detail

getClientID

Uuid getClientID()

renew

boolean renew(long duration)

notifyIfExpired

boolean notifyIfExpired(long now)

remove

void remove(Target target)

add

boolean add(Target target)


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