Class SystemTimeFixedLeasePeriodPolicy

java.lang.Object
com.sun.jini.landlord.FixedLeasePeriodPolicy
com.sun.jini.landlord.SystemTimeFixedLeasePeriodPolicy
All Implemented Interfaces:
LeasePeriodPolicy

public class SystemTimeFixedLeasePeriodPolicy extends FixedLeasePeriodPolicy
Overrided FixedLeasePeriodPolicy.currentTime() by using SystemTime#timeMills()
Since:
9.5
Author:
Dan Kilman
  • Constructor Details

    • SystemTimeFixedLeasePeriodPolicy

      public SystemTimeFixedLeasePeriodPolicy(long maximum, long defaultLength)
  • Method Details

    • currentTime

      protected long currentTime()
      Description copied from class: FixedLeasePeriodPolicy
      Method that provides some notion of the current time in milliseconds since the beginning of the epoch. Default implementation calls System.currentTimeMillis()
      Overrides:
      currentTime in class FixedLeasePeriodPolicy