com.sun.jini.norm
Class LeaseSet.ExpirationTime

java.lang.Object
  extended by com.sun.jini.norm.LeaseSet.ExpirationTime
Enclosing class:
LeaseSet

private static class LeaseSet.ExpirationTime
extends Object

Utility class that holds and guards the second copy of our expiration time.


Field Summary
private  long expirationTime
          The expiration time in milliseconds since the beginning of the epoch
private static long serialVersionUID
           
 
Constructor Summary
private LeaseSet.ExpirationTime(long initVal)
          Simple constructor
 
Method Summary
private  boolean ensureCurrent(long now)
          Return true if expiration time has not been reached
private  void set(long newTime)
          Update the current expiration time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

expirationTime

private long expirationTime
The expiration time in milliseconds since the beginning of the epoch

Constructor Detail

LeaseSet.ExpirationTime

private LeaseSet.ExpirationTime(long initVal)
Simple constructor

Method Detail

set

private void set(long newTime)
Update the current expiration time


ensureCurrent

private boolean ensureCurrent(long now)
Return true if expiration time has not been reached

Parameters:
now - the current time in milliseconds since the beginning of the epoch


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