public abstract class AbstractSiteStatusBuilder<E> extends Object
SiteStatus
builder based on its online and offline members.Modifier | Constructor and Description |
---|---|
protected |
AbstractSiteStatusBuilder() |
Modifier and Type | Method and Description |
---|---|
SiteStatus |
build() |
protected abstract SiteStatus |
createMixedStatus(List<E> onlineElements,
List<E> offlineElements) |
protected boolean |
isOffline() |
protected boolean |
isOnline() |
void |
offlineOn(E member)
Adds the member with an offline connection to the site.
|
void |
onlineOn(E member)
Adds the element with an online connection to the site.
|
public final void onlineOn(E member)
member
- The member.public final void offlineOn(E member)
member
- The member.public final SiteStatus build()
SiteStatus
created.protected boolean isOnline()
protected boolean isOffline()
protected abstract SiteStatus createMixedStatus(List<E> onlineElements, List<E> offlineElements)
Copyright © 2021 JBoss by Red Hat. All rights reserved.