All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.ehcache.management.service.SamplerRepositoryService Maven / Gradle / Ivy

Go to download

A product library implementing the ehcache management resource service interfaces and integrating with ehcache to construct the relevant management resource entities.

There is a newer version: 2.8.9
Show newest version
package net.sf.ehcache.management.service;

import net.sf.ehcache.CacheManager;

/**
 * A interface for services registering {@link CacheManager} objects for sampling.
 *
 * @author brandony
 */
public interface SamplerRepositoryService {

  /**
   * Register this service as an MBean, if not done already.
   *
   * @param clientUUID the UUID to identify this service
   */
  void registerMBean(String clientUUID);

  /**
   * Register a {@link CacheManager} for sampling.
   *
   * @param cacheManager to register
   */
  void register(CacheManager cacheManager);

  /**
   * Unregister a {@link CacheManager} for sampling.
   *
   * @param cacheManager to register
   */
  void unregister(CacheManager cacheManager);

  /**
   * An indicator as to whether or not any {@link CacheManager} objects have been registered.
   *
   * @return {@code true} if an object has been registered, {@code false} otherwise
   */
  boolean hasRegistered();

  /**
   * Dispose of the repository service mbean
   */
  void dispose();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy