Interface FileCacheProbe
-
- All Known Implementing Classes:
FileCacheProbe.Adapter
public interface FileCacheProbeMonitoring probe providing callbacks that may be invoked by GrizzlyFileCache.- Since:
- 2.0
- Author:
- Alexey Stashok
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classFileCacheProbe.AdapterFileCacheProbeadapter that provides no-op implementations for all interface methods allowing easy extension by the developer.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonEntryAddedEvent(FileCache fileCache, FileCacheEntry entry)Method will be called, when file cache entry gets added.voidonEntryHitEvent(FileCache fileCache, FileCacheEntry entry)Method will be called, when file cache entry gets hit.voidonEntryMissedEvent(FileCache fileCache, String host, String requestURI)Method will be called, when file cache entry is missed for some resource.voidonEntryRemovedEvent(FileCache fileCache, FileCacheEntry entry)Method will be called, when file cache entry gets removed.voidonErrorEvent(FileCache fileCache, Throwable error)Method will be called, when error occurs on theFileCache.
-
-
-
Method Detail
-
onEntryAddedEvent
void onEntryAddedEvent(FileCache fileCache, FileCacheEntry entry)
Method will be called, when file cache entry gets added.- Parameters:
fileCache-FileCache, the event belongs to.entry-FileCacheEntrybeen added.
-
onEntryRemovedEvent
void onEntryRemovedEvent(FileCache fileCache, FileCacheEntry entry)
Method will be called, when file cache entry gets removed.- Parameters:
fileCache-FileCache, the event belongs to.entry-FileCacheEntrybeen removed.
-
onEntryHitEvent
void onEntryHitEvent(FileCache fileCache, FileCacheEntry entry)
Method will be called, when file cache entry gets hit.- Parameters:
fileCache-FileCache, the event belongs to.entry-FileCacheEntrybeen hitted.
-
onEntryMissedEvent
void onEntryMissedEvent(FileCache fileCache, String host, String requestURI)
Method will be called, when file cache entry is missed for some resource.- Parameters:
fileCache-FileCache, the event belongs to.host- the requested HTTP "Host" header.requestURI- the requested HTTP URL.
-
-