Interface FileCacheProbe
- All Known Implementing Classes:
FileCacheProbe.Adapter
public interface FileCacheProbe
Monitoring probe providing callbacks that may be invoked by Grizzly
FileCache.- Since:
- 2.0
- Author:
- Alexey Stashok
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFileCacheProbeadapter that provides no-op implementations for all interface methods allowing easy extension by the developer. -
Method Summary
Modifier and TypeMethodDescriptionvoidonEntryAddedEvent(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 Details
-
onEntryAddedEvent
Method will be called, when file cache entry gets added.- Parameters:
fileCache-FileCache, the event belongs to.entry-FileCacheEntrybeen added.
-
onEntryRemovedEvent
Method will be called, when file cache entry gets removed.- Parameters:
fileCache-FileCache, the event belongs to.entry-FileCacheEntrybeen removed.
-
onEntryHitEvent
Method will be called, when file cache entry gets hit.- Parameters:
fileCache-FileCache, the event belongs to.entry-FileCacheEntrybeen hitted.
-
onEntryMissedEvent
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.
-
onErrorEvent
Method will be called, when error occurs on theFileCache.- Parameters:
fileCache-FileCache, the event belongs to.error- error
-