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 TimeToLiveexactly(TimeUnit timeUnit, Long timeToLive)protected String[]fieldsExcludedFromEqualsAndHashCode()LonggetTimeToLive()TimeUnitgetTimeUnit()booleanisUnlimited()booleanstillAlive()static TimeToLiveunlimited()-
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:
fieldsExcludedFromEqualsAndHashCodein classObjectWithReflectiveEqualsHashCodeToString
-
-