public class TimedTokenSet
extends java.lang.Object
| Constructor and Description |
|---|
TimedTokenSet(int timeOut,
java.util.concurrent.TimeUnit unit,
ExpirationService expirationService) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp()
A utility method that some implementations may require, in order to force the collection to time out and remove
entries.
|
void |
put(TokenImpl token)
Add a value to the set.
|
void |
refresh(TokenImpl token)
Refresh the last access time of a token.
|
boolean |
remove(TokenImpl token)
Removes one entry from the set, the removal cause should be RemovalCause.EXPLICIT.
|
void |
removeAll()
Removes any and all entries from the set, the removal cause for each should be RemovalCause.EXPLICIT.
|
int |
timedOutCount()
The number of entries in the cache that were removed due to timing out.
|
public TimedTokenSet(int timeOut,
java.util.concurrent.TimeUnit unit,
ExpirationService expirationService)
public int timedOutCount()
public boolean remove(TokenImpl token)
public void removeAll()
public void put(TokenImpl token)
public void cleanUp()
public void refresh(TokenImpl token)