Spring Data for VMware GemFire
Class RegionDefinition
java.lang.Object
org.springframework.data.gemfire.config.schema.SchemaObjectDefinition
org.springframework.data.gemfire.config.schema.definitions.RegionDefinition
- All Implemented Interfaces:
Serializable,org.springframework.core.Ordered
RegionDefinition is an Abstract Data Type (ADT) encapsulating the configuration meta-data used to
define a new Apache Geode / Pivotal GemFire cache Region.- Since:
- 2.0.0
- See Also:
-
RegionRegionShortcutGemfireAdminOperationsSchemaObjectDefinitionSchemaObjectType- Serialized Form
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.geode.cache.RegionShortcutprotected static final intFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRegionDefinition(org.apache.geode.cache.Region<?, ?> region) Constructs a new instance ofRegionDefinitiondefined with the givenRegion. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(GemfireAdminOperations gemfireAdminOperations) Creates an actual schema object from thisSchemaObjectDefinition.static RegionDefinitionfrom(org.apache.geode.cache.Region<?, ?> region) Factory method used to construct a new instance ofRegionDefinitiondefined from the givenRegion.getName()Returns thenameassigned to the schema object.intgetOrder()Get the order value of this object.protected org.apache.geode.cache.Region<?,?> Returns a reference to theRegionfrom which this definition is defined.org.apache.geode.cache.RegionShortcutgetType()Returns thetypeof schema object defined by thisSchemaObjectDefinition.having(org.apache.geode.cache.RegionShortcut regionShortcut) Methods inherited from class org.springframework.data.gemfire.config.schema.SchemaObjectDefinition
equals, hashCode, toString
-
Field Details
-
ORDER
protected static final int ORDER- See Also:
-
DEFAULT_REGION_SHORTCUT
public static final org.apache.geode.cache.RegionShortcut DEFAULT_REGION_SHORTCUT
-
-
Constructor Details
-
RegionDefinition
protected RegionDefinition(org.apache.geode.cache.Region<?, ?> region) Constructs a new instance ofRegionDefinitiondefined with the givenRegion.- Parameters:
region-Regionon which this definition is defined; must not be null.- Throws:
IllegalArgumentException- ifRegionis null.- See Also:
-
Region
-
-
Method Details
-
from
Factory method used to construct a new instance ofRegionDefinitiondefined from the givenRegion.- Parameters:
region-Regionfrom which the new definition will be defined.- Returns:
- a new instance of
RegionDefinitiondefined from the givenRegion. - Throws:
IllegalArgumentException- ifRegionis null.- See Also:
-
RegionRegionDefinition(Region)
-
getOrder
public int getOrder()Get the order value of this object.- Returns:
- the order value of this object.
- See Also:
-
Ordered
-
getRegion
protected org.apache.geode.cache.Region<?,?> getRegion()Returns a reference to theRegionfrom which this definition is defined.- Returns:
- a reference to the
Regionfrom which this definition is defined. - See Also:
-
Region
-
getName
Description copied from class:SchemaObjectDefinitionReturns thenameassigned to the schema object.- Overrides:
getNamein classSchemaObjectDefinition- Returns:
- the
nameassigned to the schema object; name is never null.
-
getRegionShortcut
public org.apache.geode.cache.RegionShortcut getRegionShortcut() -
getType
Description copied from class:SchemaObjectDefinitionReturns thetypeof schema object defined by thisSchemaObjectDefinition.- Specified by:
getTypein classSchemaObjectDefinition- Returns:
- the
typeof schema object defined by thisSchemaObjectDefinition. - See Also:
-
create
Description copied from class:SchemaObjectDefinitionCreates an actual schema object from thisSchemaObjectDefinition.- Overrides:
createin classSchemaObjectDefinition- Parameters:
gemfireAdminOperations-GemfireAdminOperationsused to create an actual schema object from thisSchemaObjectDefinition.- See Also:
-
having
-
with
-