Class Millis

java.lang.Object
com.oracle.coherence.common.util.Duration
com.tangosol.coherence.config.unit.Millis

public class Millis extends com.oracle.coherence.common.util.Duration
Millis is a specialized Duration whose default constructor assumes that the specified units of time (when the unit magnitude is not specified) are milliseconds.

Note: This class is provided to simplify and support backwards compatibility during the injection of millisecond-based units of time into appropriate classes. This class is not designed for general purpose representation of units of time. For general purpose units of time, please use the Duration class.

Since:
Coherence 12.1.2
Author:
bo 2012.01.18
  • Nested Class Summary Link icon

    Nested classes/interfaces inherited from class com.oracle.coherence.common.util.Duration Link icon

    com.oracle.coherence.common.util.Duration.Magnitude
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    Millis(com.oracle.coherence.common.util.Duration d)
    Constructs a Millis based on another Duration.
    Constructs a Millis representing a Duration measured in milliseconds.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    long
    get()
    Obtain the Duration in units of milliseconds.

    Methods inherited from class com.oracle.coherence.common.util.Duration Link icon

    as, asJavaDuration, equals, getNanos, hashCode, toString, toString

    Methods inherited from class java.lang.Object Link icon

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details Link icon

    • Millis Link icon

      public Millis(com.oracle.coherence.common.util.Duration d)
      Constructs a Millis based on another Duration.
      Parameters:
      d - the Duration
    • Millis Link icon

      public Millis(String s)
      Constructs a Millis representing a Duration measured in milliseconds.
      Parameters:
      s - the number of milliseconds or other duration when magnitudes are specified
      See Also:
      • Duration(String, Magnitude)
  • Method Details Link icon

    • get Link icon

      public long get()
      Obtain the Duration in units of milliseconds.
      Returns:
      the number of milliseconds in the Duration