public class NeverExpiresExpirationPolicy extends AbstractCasExpirationPolicy
Constructor and Description |
---|
NeverExpiresExpirationPolicy()
Instantiates a new Never expires expiration policy.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getTimeToIdle()
Describes the idle time duration for the item.
|
java.lang.Long |
getTimeToLive()
Describes the time duration where this policy should consider the item alive.
|
int |
hashCode() |
boolean |
isExpired(TicketState ticketState)
Method to determine if a Ticket has expired or not, based on the policy.
|
public NeverExpiresExpirationPolicy()
public boolean isExpired(TicketState ticketState)
ExpirationPolicy
ticketState
- The snapshot of the current ticket statepublic java.lang.Long getTimeToLive()
ExpirationPolicy
public java.lang.Long getTimeToIdle()
ExpirationPolicy
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object