|
GemFire 6.6.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RegionAttributes<K,V>
Defines attributes for configuring a region.
These are EvictionAttributes,
CacheListener, CacheLoader, CacheWriter,
scope, data policy, 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.
AttributesFactory,
AttributesMutator,
Region.getAttributes(),
EvictionAttributes| Method Summary | |
|---|---|
CacheListener<K,V> |
getCacheListener()
Deprecated. as of GemFire 5.0, use getCacheListeners() instead |
CacheListener<K,V>[] |
getCacheListeners()
Returns an array of all the cache listeners on this attributes. |
CacheLoader<K,V> |
getCacheLoader()
Returns the cache loader associated with this region. |
CacheWriter<K,V> |
getCacheWriter()
Returns the cache writer associated with this region. |
boolean |
getCloningEnabled()
Returns whether or not cloning is enabled on region |
int |
getConcurrencyLevel()
Returns the concurrencyLevel of the entries map. |
CustomExpiry<K,V> |
getCustomEntryIdleTimeout()
Gets the idleTimeout CustomExpiry, if any
for entries in this region |
CustomExpiry<K,V> |
getCustomEntryTimeToLive()
Gets the entryTimeToLive CustomExpiry, if any
for entries in this region |
DataPolicy |
getDataPolicy()
Returns the data policy for this region. |
File[] |
getDiskDirs()
Deprecated. as of 6.5 use DiskStore.getDiskDirs() instead. |
int[] |
getDiskDirSizes()
Deprecated. as of 6.5 use DiskStore.getDiskDirSizes() instead. |
String |
getDiskStoreName()
Returns the name of the DiskStore that this region belongs
to, if any. |
DiskWriteAttributes |
getDiskWriteAttributes()
Deprecated. as of 6.5 use getDiskStoreName() instead. |
boolean |
getEarlyAck()
Deprecated. Setting early ack no longer has any effect. |
boolean |
getEnableAsyncConflation()
Returns whether or not async conflation is enabled for sending messages to async peers. |
boolean |
getEnableBridgeConflation()
Deprecated. as of GemFire 5.0, use getEnableSubscriptionConflation() instead |
boolean |
getEnableConflation()
Deprecated. as of GemFire 5.0, use getEnableSubscriptionConflation() instead
# |
boolean |
getEnableGateway()
Returns whether or not a Gateway is enabled. |
boolean |
getEnableSubscriptionConflation()
Returns whether or not conflation is enabled for sending messages from a cache server to its clients. |
boolean |
getEnableWAN()
Deprecated. as of GemFire 5.0, use getEnableGateway instead |
ExpirationAttributes |
getEntryIdleTimeout()
Gets the idleTimeout expiration attributes for entries in this region. |
ExpirationAttributes |
getEntryTimeToLive()
Gets the timeToLive expiration attributes for entries in this region. |
EvictionAttributes |
getEvictionAttributes()
Attributes that control the size of the Region using an
EvictionAlgorithm and a EvictionAction. |
String |
getGatewayHubId()
Returns the id of the GatewayHub to which events are
distributed. |
boolean |
getIgnoreJTA()
Gets the flag telling a region to ignore JTA transactions |
boolean |
getIndexMaintenanceSynchronous()
Returns whether query service index maintenance should be done synchronously. |
int |
getInitialCapacity()
Returns the initial capacity of the entries map. |
Class<K> |
getKeyConstraint()
Returns the class that the keys in this region are constrained to. |
float |
getLoadFactor()
Returns the load factor of the entries map. |
MembershipAttributes |
getMembershipAttributes()
Returns the MembershipAttributes that configure required
roles for reliable access to the region. |
MirrorType |
getMirrorType()
Deprecated. as of GemFire 5.0, use getDataPolicy() instead. |
boolean |
getMulticastEnabled()
Returns true if multicast communications are enabled for this region. |
PartitionAttributes |
getPartitionAttributes()
Returns the PartitionAttributes that configure how
the region is partitioned. |
boolean |
getPersistBackup()
Deprecated. as of GemFire 5.0, use DataPolicy.PERSISTENT_REPLICATE instead |
String |
getPoolName()
Returns the name of the Pool that this region
will use to communicate with servers, if any. |
boolean |
getPublisher()
Returns whether or not this region is a publisher. |
ExpirationAttributes |
getRegionIdleTimeout()
Gets the idleTimeout expiration attributes for the region as a whole. |
ExpirationAttributes |
getRegionTimeToLive()
Gets the timeToLive expiration attributes for the region as a whole. |
Scope |
getScope()
Returns the scope of the region. |
boolean |
getStatisticsEnabled()
Returns whether the statistics are enabled for this region and its entries. |
SubscriptionAttributes |
getSubscriptionAttributes()
Returns the SubscriptionAttributes that configure
how this region behaves as a subscriber to remote caches. |
Class<V> |
getValueConstraint()
Returns the class that the values in this region are constrained to. |
boolean |
isDiskSynchronous()
Returns true if configured synchronous disk writes. |
boolean |
isLockGrantor()
Returns true if this member is configured to be lock grantor for the region. |
| Method Detail |
|---|
CacheLoader<K,V> getCacheLoader()
CacheWriter<K,V> getCacheWriter()
Class<K> getKeyConstraint()
Class the keys must be an
instanceofClass<V> getValueConstraint()
Class the values must be an
instanceofExpirationAttributes getRegionTimeToLive()
timeToLive expiration attributes for the region as a whole.
ExpirationAttributes getRegionIdleTimeout()
ExpirationAttributes getEntryTimeToLive()
timeToLive expiration attributes for entries in this region.
ExpirationAttributes getEntryIdleTimeout()
idleTimeout expiration attributes for entries in this region.
CustomExpiry<K,V> getCustomEntryTimeToLive()
entryTimeToLive CustomExpiry, if any
for entries in this region
CustomExpiry<K,V> getCustomEntryIdleTimeout()
idleTimeout CustomExpiry, if any
for entries in this region
boolean getIgnoreJTA()
@Deprecated MirrorType getMirrorType()
getDataPolicy() instead.
MirrorTypeDataPolicy getDataPolicy()
DataPolicyScope getScope()
ScopeEvictionAttributes getEvictionAttributes()
Region using an
EvictionAlgorithm and a EvictionAction.
@Deprecated CacheListener<K,V> getCacheListener()
getCacheListeners() instead
CacheListener
IllegalStateException - if more than one cache listener exists on this attributesCacheListener<K,V>[] getCacheListeners()
CacheListeners; an empty array if no listenersint getInitialCapacity()
HashMapfloat getLoadFactor()
HashMapboolean isLockGrantor()
Scope.GLOBAL.
This attribute does not indicate whether or not this member is currently lock grantor. It only indicates that at the time of region creation, this member should attempt to become lock grantor.
AttributesFactory,
Region.becomeLockGrantor()boolean getMulticastEnabled()
AttributesFactory.setMulticastEnabled(boolean)int getConcurrencyLevel()
AttributesFactory@Deprecated boolean getPersistBackup()
DataPolicy.PERSISTENT_REPLICATE instead
@Deprecated DiskWriteAttributes getDiskWriteAttributes()
getDiskStoreName() instead.
DiskWriteAttributes that configure how
the region is written to disk.
@Deprecated File[] getDiskDirs()
DiskStore.getDiskDirs() instead.
boolean getIndexMaintenanceSynchronous()
PartitionAttributes getPartitionAttributes()
PartitionAttributes that configure how
the region is partitioned.
MembershipAttributes getMembershipAttributes()
MembershipAttributes that configure required
roles for reliable access to the region.
SubscriptionAttributes getSubscriptionAttributes()
SubscriptionAttributes that configure
how this region behaves as a subscriber to remote caches.
boolean getStatisticsEnabled()
@Deprecated boolean getEarlyAck()
@Deprecated boolean getEnableWAN()
boolean getEnableGateway()
String getGatewayHubId()
GatewayHub to which events are
distributed.
GatewayHub to which events are
distributedboolean getPublisher()
@Deprecated boolean getEnableConflation()
getEnableSubscriptionConflation() instead
#
@Deprecated boolean getEnableBridgeConflation()
getEnableSubscriptionConflation() instead
boolean getEnableSubscriptionConflation()
boolean getEnableAsyncConflation()
int[] getDiskDirSizes()
DiskStore.getDiskDirSizes() instead.
String getPoolName()
Pool that this region
will use to communicate with servers, if any.
Returns null if this region communicates with peers.
Pool
this region will use for server communication; null is returned if
the region communicates with peers.boolean getCloningEnabled()
String getDiskStoreName()
DiskStore that this region belongs
to, if any.
Returns null if this region belongs to default DiskStore.
DiskStore of this region;
null is returned if this region belongs to default
DiskStore.boolean isDiskSynchronous()
|
GemFire 6.6.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||