Class FileCacheProbe.Adapter
java.lang.Object
org.glassfish.grizzly.http.server.filecache.FileCacheProbe.Adapter
- All Implemented Interfaces:
FileCacheProbe
- Enclosing interface:
- FileCacheProbe
FileCacheProbe adapter that provides no-op implementations for all interface methods allowing easy extension
by the developer.- Since:
- 2.1.9
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glassfish.grizzly.http.server.filecache.FileCacheProbe
FileCacheProbe.Adapter -
Constructor Summary
Constructors -
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.
-
Constructor Details
-
Adapter
public Adapter()
-
-
Method Details
-
onEntryAddedEvent
Method will be called, when file cache entry gets added.- Specified by:
onEntryAddedEventin interfaceFileCacheProbe- Parameters:
fileCache-FileCache, the event belongs to.entry-FileCacheEntrybeen added.
-
onEntryRemovedEvent
Method will be called, when file cache entry gets removed.- Specified by:
onEntryRemovedEventin interfaceFileCacheProbe- Parameters:
fileCache-FileCache, the event belongs to.entry-FileCacheEntrybeen removed.
-
onEntryHitEvent
Method will be called, when file cache entry gets hit.- Specified by:
onEntryHitEventin interfaceFileCacheProbe- Parameters:
fileCache-FileCache, the event belongs to.entry-FileCacheEntrybeen hitted.
-
onEntryMissedEvent
Method will be called, when file cache entry is missed for some resource.- Specified by:
onEntryMissedEventin interfaceFileCacheProbe- 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.- Specified by:
onErrorEventin interfaceFileCacheProbe- Parameters:
fileCache-FileCache, the event belongs to.error- error
-