org.springframework.data.gemfire
Class RegionAttributesFactoryBean
java.lang.Object
com.gemstone.gemfire.cache.AttributesFactory
org.springframework.data.gemfire.RegionAttributesFactoryBean
- All Implemented Interfaces:
- FactoryBean<RegionAttributes>, InitializingBean
public class RegionAttributesFactoryBean
- extends AttributesFactory
- implements FactoryBean<RegionAttributes>, InitializingBean
Spring-friendly bean for creating RegionAttributes
. Eliminates the need of using
a XML 'factory-method' tag.
Methods inherited from class com.gemstone.gemfire.cache.AttributesFactory |
addCacheListener, create, createRegionAttributes, initCacheListeners, setBucketRegion, setCacheListener, setCacheLoader, setCacheWriter, setCloningEnabled, setConcurrencyLevel, setCustomEntryIdleTimeout, setCustomEntryTimeToLive, setDataPolicy, setDiskDirsAndSizes, setDiskStoreName, setDiskSynchronous, setDiskWriteAttributes, setEarlyAck, setEnableAsyncConflation, setEnableBridgeConflation, setEnableConflation, setEnableGateway, setEnableSubscriptionConflation, setEnableWAN, setEntryIdleTimeout, setEntryTimeToLive, setEvictionAttributes, setGatewayHubId, setIgnoreJTA, setIndexMaintenanceSynchronous, setInitialCapacity, setKeyConstraint, setLoadFactor, setLockGrantor, setMembershipAttributes, setMirrorType, setMulticastEnabled, setPartitionAttributes, setPersistBackup, setPoolName, setPublisher, setRegionIdleTimeout, setRegionTimeToLive, setScope, setStatisticsEnabled, setSubscriptionAttributes, setValueConstraint, validateAttributes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegionAttributesFactoryBean
public RegionAttributesFactoryBean()
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Throws:
Exception
getObject
public RegionAttributes getObject()
throws Exception
- Specified by:
getObject
in interface FactoryBean<RegionAttributes>
- Throws:
Exception
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interface FactoryBean<RegionAttributes>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface FactoryBean<RegionAttributes>
setDiskDirs
public void setDiskDirs(File[] diskDirs)
- Overrides:
setDiskDirs
in class AttributesFactory
setDiskSizes
public void setDiskSizes(int[] sizes)
- Sets the sizes (in megabytes) for each disk directory.
Used only disk directories are specified.
- Parameters:
sizes
-