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

org.infinispan.xsite.status.OnlineSiteStatus Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.xsite.status;

/**
 * {@link SiteStatus} implementation for online sites.
 *
 * This class is a singleton and its instance is accessible via {@link #getInstance()}.
 *
 * @author Pedro Ruivo
 * @since 8.2
 */
public class OnlineSiteStatus implements SiteStatus {


   private OnlineSiteStatus() {
   }

   public static OnlineSiteStatus getInstance() {
      return SingletonHolder.INSTANCE;
   }

   @Override
   public boolean isOnline() {
      return true;
   }

   @Override
   public boolean isOffline() {
      return false;
   }

   private static class SingletonHolder {
      private static final OnlineSiteStatus INSTANCE = new OnlineSiteStatus();
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy