public class ClusteredResourceStateHandler extends Object implements ResourceStateHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
ClusteredResourceStateHandler.CacheEntry |
ResourceStateHandler.ResourceState| Constructor and Description |
|---|
ClusteredResourceStateHandler() |
| Modifier and Type | Method and Description |
|---|---|
ResourceStateHandler.ResourceState |
add(String uri,
long dateModified,
long expires,
String etag)
Add state information about one rest URI
|
void |
clear()
Clear all state information from rest URIs
|
ResourceStateHandler.ResourceState |
get(String uri)
Retrieve state information about one rest URI
|
void |
remove(String uri)
Clear the state information about one rest URI
|
void |
removeSegments(String... baseURIs)
Clear the state information about any rest URI that starts with one of the baseURIs provided
|
public ResourceStateHandler.ResourceState add(String uri, long dateModified, long expires, String etag)
ResourceStateHandleradd in interface ResourceStateHandlerpublic ResourceStateHandler.ResourceState get(String uri)
ResourceStateHandlerget in interface ResourceStateHandlerpublic void remove(String uri)
ResourceStateHandlerremove in interface ResourceStateHandlerpublic void removeSegments(String... baseURIs)
ResourceStateHandlerremoveSegments in interface ResourceStateHandlerpublic void clear()
ResourceStateHandlerclear in interface ResourceStateHandlerCopyright © 2016. All rights reserved.