Package org.infinispan.xsite.status
Class AbstractMixedSiteStatus<E>
java.lang.Object
org.infinispan.xsite.status.AbstractMixedSiteStatus<E>
- All Implemented Interfaces:
SiteStatus
- Direct Known Subclasses:
CacheMixedSiteStatus
,ContainerMixedSiteStatus
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 Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractMixedSiteStatus
(Collection<E> online, Collection<E> offline) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
final boolean
isOnline()
protected static <E> List
<E> toImmutable
(Collection<E> collection)
-
Field Details
-
online
-
offline
-
-
Constructor Details
-
AbstractMixedSiteStatus
-
-
Method Details
-
toImmutable
-
isOnline
public final boolean isOnline()- Specified by:
isOnline
in interfaceSiteStatus
- Returns:
true
if the site is online.
-
isOffline
public final boolean isOffline()- Specified by:
isOffline
in interfaceSiteStatus
- Returns:
true
if the site is offline.
-
getOnline
-
getOffline
-