public static class FileCacheProbe.Adapter extends Object implements FileCacheProbe
FileCacheProbe
adapter that provides no-op implementations for
all interface methods allowing easy extension by the developer.FileCacheProbe.Adapter
Constructor and Description |
---|
Adapter() |
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 . |
public void onEntryAddedEvent(FileCache fileCache, FileCacheEntry entry)
onEntryAddedEvent
in interface FileCacheProbe
fileCache
- FileCache
, the event belongs to.entry
- FileCacheEntry
been added.public void onEntryRemovedEvent(FileCache fileCache, FileCacheEntry entry)
onEntryRemovedEvent
in interface FileCacheProbe
fileCache
- FileCache
, the event belongs to.entry
- FileCacheEntry
been removed.public void onEntryHitEvent(FileCache fileCache, FileCacheEntry entry)
onEntryHitEvent
in interface FileCacheProbe
fileCache
- FileCache
, the event belongs to.entry
- FileCacheEntry
been hitted.public void onEntryMissedEvent(FileCache fileCache, String host, String requestURI)
onEntryMissedEvent
in interface FileCacheProbe
fileCache
- FileCache
, the event belongs to.host
- the requested HTTP "Host" header.requestURI
- the requested HTTP URL.public void onErrorEvent(FileCache fileCache, Throwable error)
FileCache
.onErrorEvent
in interface FileCacheProbe
fileCache
- FileCache
, the event belongs to.error
- errorCopyright © 2014 Oracle Corporation. All rights reserved.