Package wt.cache

Interface GuavaCacheMonitorMBean

All Superinterfaces:
ICacheManagerMBean, SelfEmailingMBean

public interface GuavaCacheMonitorMBean extends ICacheManagerMBean
Guava cache instrumentation interface

Supported API: true

Extendable: true
  • Method Details

    • getCacheSize

      int getCacheSize()
      Configured maximum cache size; -1 implies unlimited

      Supported API: true
      Specified by:
      getCacheSize in interface ICacheManagerMBean
    • getSpec

      String getSpec()
      Cache configuration specification

      Supported API: true
    • getCleanupIntervalSeconds

      int getCleanupIntervalSeconds()
      Interval in seconds at which cache cleanup is performed; non-positive values disable periodic explicit cleanup

      Supported API: true
    • setCleanupIntervalSeconds

      void setCleanupIntervalSeconds(int cleanupIntervalSeconds)
      Interval in seconds at which cache cleanup is performed; non-positive values disable periodic explicit cleanup

      Supported API: true
    • addAsInjectionTarget

      @MBeanOperationImpact(1) boolean addAsInjectionTarget(boolean invokeSave) throws InstanceNotFoundException, IOException, URISyntaxException
      Add as an injection target to the appropriate Loader MBean to allow configuration to be preserved; returns false if injection target already existed in Loader

      Supported API: true
      Parameters:
      invokeSave - Whether to invoke save() operation on the loader as well
      Throws:
      InstanceNotFoundException
      IOException
      URISyntaxException