org.mockserver.matchers
Class TimeToLive

java.lang.Object
  extended by org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
      extended by org.mockserver.matchers.TimeToLive

public class TimeToLive
extends ObjectWithReflectiveEqualsHashCodeToString

Author:
jamesdbloom

Field Summary
 
Fields inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
logger
 
Method Summary
static TimeToLive exactly(TimeUnit timeUnit, Long timeToLive)
           
 Long getTimeToLive()
           
 TimeUnit getTimeUnit()
           
 boolean isUnlimited()
           
 boolean stillAlive()
           
static TimeToLive unlimited()
           
 
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
addFieldsExcludedFromEqualsAndHashCode, equals, fieldsExcludedFromEqualsAndHashCode, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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()


Copyright © 2017. All rights reserved.