Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Project Rio
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jini.rio.resources.util
Class TimeUtil

    java.lang.Object
      org.jini.rio.resources.util.TimeUtil

    public class TimeUtil

extends Object

Format time into a readable string.

Constructor Summary
`TimeUtil()`

Method Summary
`static long` | `computeLeaseRenewalTime(long leaseDuration)` Compute the delay to wait for lease renewal based on lease duration
`static String` | `format(long duration)` Format a time into a readable string

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### TimeUtil

    public TimeUtil()

Method Detail

### format

    public static String format(long duration)

  Format a time into a readable string

### computeLeaseRenewalTime

    public static long computeLeaseRenewalTime(long leaseDuration)

  Compute the delay to wait for lease renewal based on lease duration

  Parameters:
    `leaseDuration` - How long the lease has been granted for
  Returns:
    How long to wait to attempt to renew the lease

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Project Rio
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © Project Rio.