Class AbstractSiteStatusBuilder<E>

java.lang.Object
org.infinispan.xsite.status.AbstractSiteStatusBuilder<E>
Direct Known Subclasses:
CacheSiteStatusBuilder, ContainerSiteStatusBuilder

public abstract class AbstractSiteStatusBuilder<E> extends Object
A SiteStatus builder based on its online and offline members.
Since:
8.2
Author:
Pedro Ruivo
  • Constructor Details

    • AbstractSiteStatusBuilder

      protected AbstractSiteStatusBuilder()
  • Method Details

    • onlineOn

      public final void onlineOn(E member)
      Adds the element with an online connection to the site.
      Parameters:
      member - The member.
    • offlineOn

      public final void offlineOn(E member)
      Adds the member with an offline connection to the site.
      Parameters:
      member - The member.
    • build

      public final SiteStatus build()
      Returns:
      SiteStatus created.
    • isOnline

      protected boolean isOnline()
    • isOffline

      protected boolean isOffline()
    • createMixedStatus

      protected abstract SiteStatus createMixedStatus(List<E> onlineElements, List<E> offlineElements)