Package com.sun.jini.landlord
Class SystemTimeFixedLeasePeriodPolicy
java.lang.Object
com.sun.jini.landlord.FixedLeasePeriodPolicy
com.sun.jini.landlord.SystemTimeFixedLeasePeriodPolicy
- All Implemented Interfaces:
LeasePeriodPolicy
Overrided
FixedLeasePeriodPolicy.currentTime() by using SystemTime#timeMills()- Since:
- 9.5
- Author:
- Dan Kilman
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sun.jini.landlord.LeasePeriodPolicy
LeasePeriodPolicy.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected longMethod that provides some notion of the current time in milliseconds since the beginning of the epoch.Methods inherited from class com.sun.jini.landlord.FixedLeasePeriodPolicy
calculateDuration, grant, renew
-
Constructor Details
-
SystemTimeFixedLeasePeriodPolicy
public SystemTimeFixedLeasePeriodPolicy(long maximum, long defaultLength)
-
-
Method Details
-
currentTime
protected long currentTime()Description copied from class:FixedLeasePeriodPolicyMethod that provides some notion of the current time in milliseconds since the beginning of the epoch. Default implementation calls System.currentTimeMillis()- Overrides:
currentTimein classFixedLeasePeriodPolicy
-