public final class DefaultRegion extends AbstractAnnotated implements Region
Region.Type| Constructor and Description | 
|---|
DefaultRegion(RegionId id,
             String name,
             Region.Type type,
             Annotations annots,
             List<Set<NodeId>> masters)
Creates a region using the supplied information. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object obj)  | 
int | 
hashCode()  | 
RegionId | 
id()
Returns the unique identifier of the region. 
 | 
List<Set<NodeId>> | 
masters()
Returns the list of master node sets. 
 | 
String | 
name()
Returns the friendly region name that can be used for display purposes. 
 | 
String | 
toString()  | 
Region.Type | 
type()
Returns the region type. 
 | 
annotationsclone, finalize, getClass, notify, notifyAll, wait, wait, waitannotationspublic DefaultRegion(RegionId id, String name, Region.Type type, Annotations annots, List<Set<NodeId>> masters)
id - region identifiername - friendly nametype - region typeannots - annotationsmasters - list of sets of cluster node identifiers; in order of mastershippublic RegionId id()
Regionpublic String name()
Regionpublic Region.Type type()
Regionpublic List<Set<NodeId>> masters()
Region