public interface ReplayCache extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
add(String identifier)
Add the given identifier to the cache.
|
void |
add(String identifier,
Instant expiry)
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, Instant expiry)
identifier - The identifier to be addedexpiry - A custom expiry time for the identifierboolean contains(String identifier)
identifier - The identifier to checkCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.