Interface CacheControl

  • All Superinterfaces:
    CacheInfo, CacheOperation

    public interface CacheControl
    extends CacheOperation, CacheInfo
    Combined interface for introspection and control functions of a cache relevant for management and monitoring.
    Author:
    Jens Wilke
    • Method Detail

      • of

        static CacheControl of​(Cache<?,​?> cache)
        Request the management interface of the given cache.
      • sampleStatistics

        CacheStatistics sampleStatistics()
        Returns a snapshot of cache statistics if this cache supports statistics or null otherwise.