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

org.infinispan.health.CacheHealth Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.health;

import org.infinispan.commons.dataconversion.internal.Json;
import org.infinispan.commons.dataconversion.internal.JsonSerialization;

/**
 * Cache health information.
 *
 * @author Sebastian Łaskawiec
 * @since 9.0
 */
public interface CacheHealth extends JsonSerialization {

   /**
    * Returns Cache name.
    */
   String getCacheName();

   /**
    * Returns Cache health status.
    */
   HealthStatus getStatus();

   default Json toJson() {
      return Json.object().set("status", getStatus()).set("cache_name", getCacheName());
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy