Click or drag to resize
RegionAttributes Class

Note: This API is now obsolete.

Defines attributes for configuring a region.
Inheritance Hierarchy
SystemObject
  [T:GemStone.GemFire.Cache.Internal.SBWrap<gemfire::RegionAttributes>]
    GemStone.GemFire.CacheRegionAttributes

Namespace: GemStone.GemFire.Cache
Assembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntax
[ObsoleteAttribute("Use classes and APIs from the GemStone.GemFire.Cache.Generic namespace")]
public sealed class RegionAttributes : [T:GemStone.GemFire.Cache.Internal.SBWrap<gemfire::RegionAttributes>], 
	IGFSerializable

The RegionAttributes type exposes the following members.

Properties
  NameDescription
Public propertyCacheListener
Gets the cache listener for the region.
Public propertyCacheListenerFactory
Returns the symbol name of the factory function from which the loader will be created on a cache server.
Public propertyCacheListenerLibrary
Returns the path of the library from which the factory function will be invoked on a cache server.
Public propertyCacheLoader
Gets the cache loader for the region.
Public propertyCacheLoaderFactory
Rreturns the symbol name of the factory function from which the loader will be created on a cache server.
Public propertyCacheLoaderLibrary
Returns the path of the library from which the factory function will be invoked on a cache server.
Public propertyCacheWriter
Gets the cache writer for the region.
Public propertyCacheWriterFactory
Returns the symbol name of the factory function from which the loader will be created on a cache server.
Public propertyCacheWriterLibrary
Returns the path of the library from which the factory function will be invoked on a cache server.
Public propertyCachingEnabled
If true, this region will store data in the current process.
Public propertyClassId
Returns the classId of this class for serialization.
Public propertyClientNotificationEnabled
True if client notification is enabled.
Public propertyCloningEnabled
True if cloning is enabled for in case of delta.
Public propertyConcurrencyChecksEnabled
Returns the concurrency check enabled flag of the region
Public propertyConcurrencyLevel
Returns the concurrency level of the entry's local cache.
Public propertyDiskPolicy
Returns the disk policy type of the region.
Public propertyEndpoints
This method returns the list of endpoints (servername:portnumber) separated by commas.
Public propertyEntryIdleTimeout
Gets the idleTimeout value for entries in this region.
Public propertyEntryIdleTimeoutAction
Gets the idleTimeout expiration action for entries in this region.
Public propertyEntryTimeToLive
Gets the timeToLive value for entries in this region.
Public propertyEntryTimeToLiveAction
Gets the timeToLive expiration action for entries in this region.
Public propertyInitialCapacity
Returns the initial capacity of the entry's local cache.
Public propertyLoadFactor
Returns the load factor of the entry's local cache.
Public propertyLruEntriesLimit
Returns the maximum number of entries this cache will hold before using LRU eviction.
Public propertyLruEvictionAction
Returns the ExpirationAction used for LRU Eviction, default is LOCAL_DESTROY.
Public propertyObjectSize
return the size of this object in bytes
Public propertyPartitionResolver
Gets the partition resolver for the region.
Public propertyPartitionResolverFactory
Returns the symbol name of the factory function from which the loader will be created on a cache server.
Public propertyPartitionResolverLibrary
Returns the path of the library from which the factory function will be invoked on a cache server.
Public propertyPersistenceFactory
Returns the symbol name of the factory function from which the persistence manager will be created on a cache server.
Public propertyPersistenceLibrary
Returns the path of the library from which the factory function will be invoked on a cache server.
Public propertyPersistenceProperties
Returns the properties set for persistence.
Public propertyPoolName
This method returns the name of the attached pool.
Public propertyRegionIdleTimeout
Gets the idleTimeout value for the region as a whole.
Public propertyRegionIdleTimeoutAction
Gets the idleTimeout expiration action for the region as a whole.
Public propertyRegionTimeToLive
Gets the timeToLive value for the region as a whole.
Public propertyRegionTimeToLiveAction
Gets the timeToLive expiration action for the region as a whole.
Public propertyScope
Returns the scope of the region.
Top
Methods
  NameDescription
Public methodEquals(Object)
True if all the attributes are equal to those of other.
(Overrides ObjectEquals(Object).)
Public methodEquals(RegionAttributes)
True if all the attributes are equal to those of other.
Public methodFromData
Deserializes this Properties object.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToData
Serializes this Properties object.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodValidateSerializableAttributes
Throws IllegalStateException if the attributes are not suited for serialization such as those that have a cache callback (listener, loader, or writer) set directly instead of providing the library path and factory function.
Top
Remarks
These are ICacheListener, ICacheLoader, ICacheWriter, scope, mirroring, and expiration attributes for the region itself; expiration attributes for the region entries; and whether statistics are enabled for the region and its entries. To create an instance of this interface, use [!:AttributesFactory.CreateRegionAttributes]. For compatibility rules and default values, see AttributesFactory.

Note that the RegionAttributes are not distributed with the region.

See Also