Package org.mockserver.matchers
Class TimeToLive
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.matchers.TimeToLive
-
public class TimeToLive extends ObjectWithReflectiveEqualsHashCodeToString
- Author:
- jamesdbloom
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimeToLive
exactly(TimeUnit timeUnit, Long timeToLive)
protected String[]
fieldsExcludedFromEqualsAndHashCode()
Long
getTimeToLive()
TimeUnit
getTimeUnit()
boolean
isUnlimited()
boolean
stillAlive()
static TimeToLive
unlimited()
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, hashCode, key, toString
-
-
-
-
Method Detail
-
unlimited
public static TimeToLive unlimited()
-
exactly
public static TimeToLive exactly(TimeUnit timeUnit, Long timeToLive)
-
getTimeUnit
public TimeUnit getTimeUnit()
-
getTimeToLive
public Long getTimeToLive()
-
isUnlimited
public boolean isUnlimited()
-
stillAlive
public boolean stillAlive()
-
fieldsExcludedFromEqualsAndHashCode
protected String[] fieldsExcludedFromEqualsAndHashCode()
- Overrides:
fieldsExcludedFromEqualsAndHashCode
in classObjectWithReflectiveEqualsHashCodeToString
-
-