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:
-
Region
RegionShortcut
GemfireAdminOperations
SchemaObjectDefinition
SchemaObjectType
- Serialized Form
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.apache.geode.cache.RegionShortcut
protected static final int
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ModifierConstructorDescriptionprotected
RegionDefinition
(org.apache.geode.cache.Region<?, ?> region) Constructs a new instance ofRegionDefinition
defined with the givenRegion
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
create
(GemfireAdminOperations gemfireAdminOperations) Creates an actual schema object from thisSchemaObjectDefinition
.static RegionDefinition
from
(org.apache.geode.cache.Region<?, ?> region) Factory method used to construct a new instance ofRegionDefinition
defined from the givenRegion
.getName()
Returns thename
assigned to the schema object.int
getOrder()
Get the order value of this object.protected org.apache.geode.cache.Region<?,
?> Returns a reference to theRegion
from which this definition is defined.org.apache.geode.cache.RegionShortcut
getType()
Returns thetype
of 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 ofRegionDefinition
defined with the givenRegion
.- Parameters:
region
-Region
on which this definition is defined; must not be null.- Throws:
IllegalArgumentException
- ifRegion
is null.- See Also:
-
Region
-
-
Method Details
-
from
Factory method used to construct a new instance ofRegionDefinition
defined from the givenRegion
.- Parameters:
region
-Region
from which the new definition will be defined.- Returns:
- a new instance of
RegionDefinition
defined from the givenRegion
. - Throws:
IllegalArgumentException
- ifRegion
is null.- See Also:
-
Region
RegionDefinition(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 theRegion
from which this definition is defined.- Returns:
- a reference to the
Region
from which this definition is defined. - See Also:
-
Region
-
getName
Description copied from class:SchemaObjectDefinition
Returns thename
assigned to the schema object.- Overrides:
getName
in classSchemaObjectDefinition
- Returns:
- the
name
assigned to the schema object; name is never null.
-
getRegionShortcut
public org.apache.geode.cache.RegionShortcut getRegionShortcut() -
getType
Description copied from class:SchemaObjectDefinition
Returns thetype
of schema object defined by thisSchemaObjectDefinition
.- Specified by:
getType
in classSchemaObjectDefinition
- Returns:
- the
type
of schema object defined by thisSchemaObjectDefinition
. - See Also:
-
create
Description copied from class:SchemaObjectDefinition
Creates an actual schema object from thisSchemaObjectDefinition
.- Overrides:
create
in classSchemaObjectDefinition
- Parameters:
gemfireAdminOperations
-GemfireAdminOperations
used to create an actual schema object from thisSchemaObjectDefinition
.- See Also:
-
having
-
with
-