|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.core.map.MapConfigurer
public class 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
Nested Class Summary | |
---|---|
static class |
MapConfigurer.UpdateMode
|
Constructor Summary | |
---|---|
MapConfigurer(IJSpace space)
|
Method Summary | |
---|---|
MapConfigurer |
clustered(boolean clustered)
|
MapConfigurer |
compression(int compression)
|
IMap |
createMap()
Creates an IMap based on the configuration. |
MapConfigurer |
localCacheEvictionStrategy(EvictionStrategy evictionStrategy)
|
MapConfigurer |
localCachePutFirst(boolean putFirst)
|
MapConfigurer |
localCacheSizeLimit(int sizeLimit)
|
MapConfigurer |
localCacheUpdateMode(MapConfigurer.UpdateMode updateMode)
|
MapConfigurer |
localCacheVersioned(boolean versioned)
|
IMap |
map()
Creates an IMap based on the configuration. |
MapConfigurer |
useLocalCache()
If no local cache properties are set, will mark this map to use local cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapConfigurer(IJSpace space)
Method Detail |
---|
public MapConfigurer clustered(boolean clustered)
MapFactoryBean.setClustered(Boolean)
public MapConfigurer compression(int compression)
MapFactoryBean.setCompression(int)
public MapConfigurer useLocalCache()
public MapConfigurer localCacheVersioned(boolean versioned)
MapFactoryBean.setLocalCacheSupport(LocalCacheSupport)
,
LocalCacheSupport.setVersioned(boolean)
public MapConfigurer localCacheEvictionStrategy(EvictionStrategy evictionStrategy)
MapFactoryBean.setLocalCacheSupport(LocalCacheSupport)
,
LocalCacheSupport.setEvictionStrategy(com.j_spaces.javax.cache.EvictionStrategy)
public MapConfigurer localCacheUpdateMode(MapConfigurer.UpdateMode updateMode)
MapFactoryBean.setLocalCacheSupport(LocalCacheSupport)
,
LocalCacheSupport.setUpdateModeName(String)
public MapConfigurer localCachePutFirst(boolean putFirst)
MapFactoryBean.setLocalCacheSupport(LocalCacheSupport)
,
LocalCacheSupport.setPutFirst(boolean)
public MapConfigurer localCacheSizeLimit(int sizeLimit)
MapFactoryBean.setLocalCacheSupport(LocalCacheSupport)
,
LocalCacheSupport.setSizeLimit(int)
public IMap createMap()
IMap
based on the configuration. Uses
MapFactoryBean.afterPropertiesSet()
.
public IMap map()
IMap
based on the configuration. Uses
MapFactoryBean.afterPropertiesSet()
.
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |