public class TimeToLive extends ObjectWithReflectiveEqualsHashCodeToString
Modifier and Type | Method and Description |
---|---|
static TimeToLive |
exactly(TimeUnit timeUnit,
Long timeToLive) |
protected String[] |
fieldsExcludedFromEqualsAndHashCode() |
Long |
getTimeToLive() |
TimeUnit |
getTimeUnit() |
boolean |
isUnlimited() |
boolean |
stillAlive() |
static TimeToLive |
unlimited() |
equals, hashCode, key, toString
public static TimeToLive unlimited()
public static TimeToLive exactly(TimeUnit timeUnit, Long timeToLive)
public TimeUnit getTimeUnit()
public Long getTimeToLive()
public boolean isUnlimited()
public boolean stillAlive()
protected String[] fieldsExcludedFromEqualsAndHashCode()
fieldsExcludedFromEqualsAndHashCode
in class ObjectWithReflectiveEqualsHashCodeToString
Copyright © 2018. All rights reserved.