public class RegionConfiguration extends Object implements DataSerializable
RegionConfiguration
encapsulates the configuration attributes for a
Region
to be created on the server.DataSerializable.Replaceable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_INACTIVE_INTERVAL
The default max inactive interval.
|
Constructor and Description |
---|
RegionConfiguration()
Default constructor used by the
DataSerialiable interface |
Modifier and Type | Method and Description |
---|---|
void |
fromData(DataInput in)
Reads the state of this object as primitive data from the given
DataInput . |
int |
getMaxInactiveInterval()
Returns the maximum time interval in seconds entries are expired
|
String |
getRegionName()
Returns the name of the
Region to be created |
void |
setCustomExpiry(CustomExpiry customExpiry)
Sets the
CustomExpiry to be used |
void |
setEnableDebugListener(boolean enableDebugListener)
Enables/disables a debug
CacheListener . |
void |
setEnableGatewayDeltaReplication(boolean enableGatewayDeltaReplication)
Enables/disables delta replication across a
Gateway . |
void |
setEnableGatewayReplication(boolean enableGatewayReplication)
Enables/disables replication across a
Gateway . |
void |
setMaxInactiveInterval(int maxInactiveInterval)
Sets the maximum time interval in seconds before entries are expired
|
void |
setRegionAttributesId(String regionAttributesId)
Sets the id of the
RegionAttributes to be used |
void |
setRegionName(String regionName)
Sets the name of the
Region to be created |
void |
setSessionExpirationCacheListener(boolean enableSessionExpirationCacheListener) |
void |
toData(DataOutput out)
Writes the state of this object as primitive data to the given
DataOutput . |
String |
toString() |
public static final int DEFAULT_MAX_INACTIVE_INTERVAL
public RegionConfiguration()
DataSerialiable
interfacepublic void setRegionName(String regionName)
Region
to be createdregionName
- The name of the Region
to be createdpublic String getRegionName()
Region
to be createdRegion
to be createdpublic void setRegionAttributesId(String regionAttributesId)
RegionAttributes
to be usedregionAttributesId
- The id of the RegionAttributes
to be usedpublic void setMaxInactiveInterval(int maxInactiveInterval)
maxInactiveInterval
- The maximum time interval in seconds before entries are expiredpublic int getMaxInactiveInterval()
public void setCustomExpiry(CustomExpiry customExpiry)
CustomExpiry
to be usedcustomExpiry
- The CustomExpiry
to be usedpublic void setEnableGatewayDeltaReplication(boolean enableGatewayDeltaReplication)
Gateway
.enableGatewayDeltaReplication
- true to enable, false to disable gateway delta
replication.public void setEnableGatewayReplication(boolean enableGatewayReplication)
Gateway
.enableGatewayReplication
- true to enable, false to disable gateway replication.public void setEnableDebugListener(boolean enableDebugListener)
CacheListener
.enableDebugListener
- true to enable, false to disable debug CacheListener
.public void setSessionExpirationCacheListener(boolean enableSessionExpirationCacheListener)
public void toData(DataOutput out) throws IOException
DataSerializable
DataOutput
.
Since 5.7 it is possible for any method call to the specified DataOutput
to throw
GemFireRethrowable
. It should not be caught by user code. If it is it
must be rethrown.
toData
in interface DataSerializable
out
- the DataOutput
to write toIOException
- A problem occurs while writing to out
public void fromData(DataInput in) throws IOException, ClassNotFoundException
DataSerializable
DataInput
.fromData
in interface DataSerializable
in
- the DataInput
to read fromIOException
- A problem occurs while reading from in
ClassNotFoundException
- A class could not be loaded while reading from in