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
getEndDate()
Long
getTimeToLive()
TimeUnit
getTimeUnit()
boolean
isUnlimited()
TimeToLive
setEndDate(long endDate)
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()
-
getEndDate
public long getEndDate()
-
setEndDate
public TimeToLive setEndDate(long endDate)
-
isUnlimited
public boolean isUnlimited()
-
stillAlive
public boolean stillAlive()
-
fieldsExcludedFromEqualsAndHashCode
protected String[] fieldsExcludedFromEqualsAndHashCode()
- Overrides:
fieldsExcludedFromEqualsAndHashCode
in classObjectWithReflectiveEqualsHashCodeToString
-
-