public class TimeToLive extends ObjectWithReflectiveEqualsHashCodeToString
Modifier and Type | Method and 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() |
equals, hashCode, toString
public static TimeToLive unlimited()
public static TimeToLive exactly(TimeUnit timeUnit, Long timeToLive)
public TimeUnit getTimeUnit()
public Long getTimeToLive()
public long getEndDate()
public TimeToLive setEndDate(long endDate)
public boolean isUnlimited()
public boolean stillAlive()
protected String[] fieldsExcludedFromEqualsAndHashCode()
fieldsExcludedFromEqualsAndHashCode
in class ObjectWithReflectiveEqualsHashCodeToString
Copyright © 2020. All rights reserved.