Class RegionDefinition
java.lang.Object
org.springframework.data.gemfire.config.schema.SchemaObjectDefinition
org.springframework.data.gemfire.config.schema.definitions.RegionDefinition
- All Implemented Interfaces:
Serializable
,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
- Author:
- John Blum
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ModifierConstructorDescriptionprotected
RegionDefinition
(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
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 Region<?,
?> Returns a reference to theRegion
from which this definition is defined.getType()
Returns thetype
of schema object defined by thisSchemaObjectDefinition
.having
(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
-
-
Constructor Details
-
RegionDefinition
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:
-
-
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:
-
getOrder
public int getOrder()Get the order value of this object.- Returns:
- the order value of this object.
- See Also:
-
getRegion
Returns a reference to theRegion
from which this definition is defined. -
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
-
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
-