public interface FileCacheProbe
FileCache
.Modifier and Type | Interface and Description |
---|---|
static class |
FileCacheProbe.Adapter
FileCacheProbe adapter that provides no-op implementations for
all interface methods allowing easy extension by the developer. |
Modifier and Type | Method and Description |
---|---|
void |
onEntryAddedEvent(FileCache fileCache,
FileCacheEntry entry)
Method will be called, when file cache entry gets added.
|
void |
onEntryHitEvent(FileCache fileCache,
FileCacheEntry entry)
Method will be called, when file cache entry gets hit.
|
void |
onEntryMissedEvent(FileCache fileCache,
String host,
String requestURI)
Method will be called, when file cache entry is missed for some resource.
|
void |
onEntryRemovedEvent(FileCache fileCache,
FileCacheEntry entry)
Method will be called, when file cache entry gets removed.
|
void |
onErrorEvent(FileCache fileCache,
Throwable error)
Method will be called, when error occurs on the
FileCache . |
void onEntryAddedEvent(FileCache fileCache, FileCacheEntry entry)
fileCache
- FileCache
, the event belongs to.entry
- FileCacheEntry
been added.void onEntryRemovedEvent(FileCache fileCache, FileCacheEntry entry)
fileCache
- FileCache
, the event belongs to.entry
- FileCacheEntry
been removed.void onEntryHitEvent(FileCache fileCache, FileCacheEntry entry)
fileCache
- FileCache
, the event belongs to.entry
- FileCacheEntry
been hitted.void onEntryMissedEvent(FileCache fileCache, String host, String requestURI)
fileCache
- FileCache
, the event belongs to.host
- the requested HTTP "Host" header.requestURI
- the requested HTTP URL.Copyright © 2014 Oracle Corporation. All Rights Reserved.