Gemfire JavaDocs
Package org.apache.geode.modules.util
Class RegionConfiguration
- java.lang.Object
-
- org.apache.geode.modules.util.RegionConfiguration
-
- All Implemented Interfaces:
java.io.Serializable
,DataSerializable
public class RegionConfiguration extends java.lang.Object implements DataSerializable
ClassRegionConfiguration
encapsulates the configuration attributes for aRegion
to be created on the server.- Since:
- GemFire 6.5
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.geode.DataSerializable
DataSerializable.Replaceable
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_MAX_INACTIVE_INTERVAL
The default max inactive interval.
-
Constructor Summary
Constructors Constructor Description RegionConfiguration()
Default constructor used by theDataSerialiable
interface
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fromData(java.io.DataInput in)
Reads the state of this object as primitive data from the givenDataInput
.int
getMaxInactiveInterval()
Returns the maximum time interval in seconds entries are expiredjava.lang.String
getRegionName()
Returns the name of theRegion
to be createdvoid
setCustomExpiry(CustomExpiry customExpiry)
Sets theCustomExpiry
to be usedvoid
setEnableDebugListener(boolean enableDebugListener)
Enables/disables a debugCacheListener
.void
setEnableGatewayDeltaReplication(boolean enableGatewayDeltaReplication)
Enables/disables delta replication across aGateway
.void
setEnableGatewayReplication(boolean enableGatewayReplication)
Enables/disables replication across aGateway
.void
setMaxInactiveInterval(int maxInactiveInterval)
Sets the maximum time interval in seconds before entries are expiredvoid
setRegionAttributesId(java.lang.String regionAttributesId)
Sets the id of theRegionAttributes
to be usedvoid
setRegionName(java.lang.String regionName)
Sets the name of theRegion
to be createdvoid
setSessionExpirationCacheListener(boolean enableSessionExpirationCacheListener)
void
toData(java.io.DataOutput out)
Writes the state of this object as primitive data to the givenDataOutput
.java.lang.String
toString()
-
-
-
Field Detail
-
DEFAULT_MAX_INACTIVE_INTERVAL
public static final int DEFAULT_MAX_INACTIVE_INTERVAL
The default max inactive interval. The default value is -1.- See Also:
- Constant Field Values
-
-
Method Detail
-
setRegionName
public void setRegionName(java.lang.String regionName)
Sets the name of theRegion
to be created- Parameters:
regionName
- The name of theRegion
to be created
-
getRegionName
public java.lang.String getRegionName()
Returns the name of theRegion
to be created- Returns:
- the name of the
Region
to be created
-
setRegionAttributesId
public void setRegionAttributesId(java.lang.String regionAttributesId)
Sets the id of theRegionAttributes
to be used- Parameters:
regionAttributesId
- The id of theRegionAttributes
to be used
-
setMaxInactiveInterval
public void setMaxInactiveInterval(int maxInactiveInterval)
Sets the maximum time interval in seconds before entries are expired- Parameters:
maxInactiveInterval
- The maximum time interval in seconds before entries are expired
-
getMaxInactiveInterval
public int getMaxInactiveInterval()
Returns the maximum time interval in seconds entries are expired- Returns:
- the maximum time interval in seconds before entries are expired
-
setCustomExpiry
public void setCustomExpiry(CustomExpiry customExpiry)
Sets theCustomExpiry
to be used- Parameters:
customExpiry
- TheCustomExpiry
to be used
-
setEnableGatewayDeltaReplication
public void setEnableGatewayDeltaReplication(boolean enableGatewayDeltaReplication)
Enables/disables delta replication across aGateway
.- Parameters:
enableGatewayDeltaReplication
- true to enable, false to disable gateway delta replication.
-
setEnableGatewayReplication
public void setEnableGatewayReplication(boolean enableGatewayReplication)
Enables/disables replication across aGateway
.- Parameters:
enableGatewayReplication
- true to enable, false to disable gateway replication.
-
setEnableDebugListener
public void setEnableDebugListener(boolean enableDebugListener)
Enables/disables a debugCacheListener
.- Parameters:
enableDebugListener
- true to enable, false to disable debugCacheListener
.
-
setSessionExpirationCacheListener
public void setSessionExpirationCacheListener(boolean enableSessionExpirationCacheListener)
-
toData
public void toData(java.io.DataOutput out) throws java.io.IOException
Description copied from interface:DataSerializable
Writes the state of this object as primitive data to the givenDataOutput
.Since 5.7 it is possible for any method call to the specified
DataOutput
to throwGemFireRethrowable
. It should not be caught by user code. If it is it must be rethrown.- Specified by:
toData
in interfaceDataSerializable
- Parameters:
out
- theDataOutput
to write to- Throws:
java.io.IOException
- A problem occurs while writing toout
-
fromData
public void fromData(java.io.DataInput in) throws java.io.IOException, java.lang.ClassNotFoundException
Description copied from interface:DataSerializable
Reads the state of this object as primitive data from the givenDataInput
.- Specified by:
fromData
in interfaceDataSerializable
- Parameters:
in
- theDataInput
to read from- Throws:
java.io.IOException
- A problem occurs while reading fromin
java.lang.ClassNotFoundException
- A class could not be loaded while reading fromin
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-