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
    • 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 - FileCacheEntry been 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 - FileCacheEntry been 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 - FileCacheEntry been 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.
      • onErrorEvent

        void onErrorEvent​(FileCache fileCache,
                          Throwable error)
        Method will be called, when error occurs on the FileCache.
        Parameters:
        fileCache - FileCache, the event belongs to.
        error - error