Class AbstractMixedSiteStatus<E>

java.lang.Object
org.infinispan.xsite.status.AbstractMixedSiteStatus<E>
All Implemented Interfaces:
SiteStatus
Direct Known Subclasses:
CacheMixedSiteStatus, ContainerMixedSiteStatus

public abstract class AbstractMixedSiteStatus<E> extends Object implements SiteStatus
Abstract class to create mixed SiteStatus.

Mixed SiteStatus are status in which some considers the site to be online and other to be offline.

Since:
8.2
Author:
Pedro Ruivo
  • Field Details

    • online

      protected final List<E> online
    • offline

      protected final List<E> offline
  • Constructor Details

  • Method Details

    • toImmutable

      protected static <E> List<E> toImmutable(Collection<E> collection)
    • isOnline

      public final boolean isOnline()
      Specified by:
      isOnline in interface SiteStatus
      Returns:
      true if the site is online.
    • isOffline

      public final boolean isOffline()
      Specified by:
      isOffline in interface SiteStatus
      Returns:
      true if the site is offline.
    • getOnline

      public List<E> getOnline()
    • getOffline

      public List<E> getOffline()