public class TimeToLive extends ObjectWithReflectiveEqualsHashCodeToString
logger
Modifier and Type | Method and Description |
---|---|
static TimeToLive |
exactly(TimeUnit timeUnit,
Long timeToLive) |
Long |
getTimeToLive() |
TimeUnit |
getTimeUnit() |
boolean |
isUnlimited() |
boolean |
stillAlive() |
static TimeToLive |
unlimited() |
addFieldsExcludedFromEqualsAndHashCode, equals, fieldsExcludedFromEqualsAndHashCode, hashCode, 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()
Copyright © 2018. All rights reserved.