public interface ReplayCache
Modifier and Type | Method and Description |
---|---|
void |
add(String identifier)
Add the given identifier to the cache.
|
void |
add(String identifier,
long timeToLive)
Add the given identifier to the cache to be cached for the given time
|
boolean |
contains(String identifier)
Return true if the given identifier is contained in the cache
|
void add(String identifier)
identifier
- The identifier to be addedvoid add(String identifier, long timeToLive)
identifier
- The identifier to be addedtimeToLive
- The length of time to cache the Identifier in secondsboolean contains(String identifier)
identifier
- The identifier to checkCopyright © 2018 JBoss by Red Hat. All rights reserved.