Package org.openspaces.core.map
Class MapConfigurer
java.lang.Object
org.openspaces.core.map.MapConfigurer
A simple configurer helper to create
IMap based on an IJSpace. The configurer
wraps MapFactoryBean and providing a simpler means to configure
it using code.
An example of using it:
UrlSpaceConfigurer urlSpaceConfigurer = new UrlSpaceConfigurer("/./space").schema("persistent")
.noWriteLeaseMode(true).lookupGroups(new String[] {"kimchy"});
IJSpace space = urlSpaceConfigurer.space();
IMap map = new MapConfigurer(space).localCachePutFirst(true).createMap();
...
urlSpaceConfigurer.destroySpace(); // optional
- Author:
- kimchy
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclustered(boolean clustered) compression(int compression) Creates anIMapbased on the configuration.localCacheEvictionStrategy(EvictionStrategy evictionStrategy) localCachePutFirst(boolean putFirst) localCacheSizeLimit(int sizeLimit) localCacheUpdateMode(MapConfigurer.UpdateMode updateMode) localCacheVersioned(boolean versioned) map()Creates anIMapbased on the configuration.If no local cache properties are set, will mark this map to use local cache.
-
Constructor Details
-
MapConfigurer
-
-
Method Details
-
clustered
- See Also:
-
compression
- See Also:
-
useLocalCache
If no local cache properties are set, will mark this map to use local cache. -
localCacheVersioned
-
localCacheEvictionStrategy
-
localCacheUpdateMode
-
localCachePutFirst
-
localCacheSizeLimit
-
createMap
Creates anIMapbased on the configuration. UsesMapFactoryBean.afterPropertiesSet(). -
map
Creates anIMapbased on the configuration. UsesMapFactoryBean.afterPropertiesSet().
-