Class Seconds
- java.lang.Object
-
- com.oracle.coherence.common.util.Duration
-
- com.tangosol.coherence.config.unit.Seconds
-
public class Seconds extends com.oracle.coherence.common.util.DurationSecondsis a specializedDurationwhose default constructor assumes that the specified units of time (when the unit magnitude is not specified) are seconds.Note: This class is provided to simplify and support backwards compatibility during the injection of second-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
Durationclass.- Since:
- Coherence 12.1.2
- Author:
- bo 2012.01.18
-
-
Constructor Summary
Constructors Constructor Description Seconds(int c)Constructs aSecondsrepresenting aDurationmeasured in seconds.Seconds(com.oracle.coherence.common.util.Duration d)Constructs aSecondsbased on anotherDuration.Seconds(String s)Constructs aSecondsrepresenting aDurationmeasured in seconds.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longget()Obtain theDurationin units of seconds.
-