org.openspaces.core
Class GigaMapConfigurer
java.lang.Object
org.openspaces.core.GigaMapConfigurer
public class GigaMapConfigurer
- extends Object
A simple programmatic configurer for GigaMap
instance wrapping
the GigaMapFactoryBean
.
Usage example:
UrlSpaceConfigurer urlSpaceConfigurer = new UrlSpaceConfigurer("/./space").schema("persistent")
.noWriteLeaseMode(true).lookupGroups(new String[] {"kimchy"});
IJSpace space = urlSpaceConfigurer.space();
IMap map = new MapConfigurer(space).localCachePutFirst(true).map();
GigaMap gigaMap = new GigaMapConfigurer(map).gigaMap();
...
urlSpaceConfigurer.destroySpace(); // optional
- Author:
- kimchy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GigaMapConfigurer
public GigaMapConfigurer(IMap map)
txProvider
public GigaMapConfigurer txProvider(TransactionProvider txProvider)
- See Also:
GigaMapFactoryBean.setTxProvider(org.openspaces.core.transaction.TransactionProvider)
exTranslator
public GigaMapConfigurer exTranslator(ExceptionTranslator exTranslator)
- See Also:
GigaMapFactoryBean.setExTranslator(org.openspaces.core.exception.ExceptionTranslator)
setDefaultWaitForResponse
public GigaMapConfigurer setDefaultWaitForResponse(long defaultWaitForResponse)
- See Also:
GigaMapFactoryBean.setDefaultWaitForResponse(long)
defaultTimeToLive
public GigaMapConfigurer defaultTimeToLive(long defaultTimeToLive)
- See Also:
GigaMapFactoryBean.setDefaultTimeToLive(long)
defaultLockTimeToLive
public GigaMapConfigurer defaultLockTimeToLive(long defaultLockTimeToLive)
- See Also:
GigaMapFactoryBean.setDefaultLockTimeToLive(long)
defaultWaitingForLockTimeout
public GigaMapConfigurer defaultWaitingForLockTimeout(long defaultWaitingForLockTimeout)
- See Also:
GigaMapFactoryBean.setDefaultWaitingForLockTimeout(long)
defaultIsolationLevel
public GigaMapConfigurer defaultIsolationLevel(int defaultIsolationLevel)
- See Also:
GigaMapFactoryBean.setDefaultIsolationLevel(int)
transactionManager
public GigaMapConfigurer transactionManager(PlatformTransactionManager transactionManager)
- See Also:
GigaMapFactoryBean.setTransactionManager(org.springframework.transaction.PlatformTransactionManager)
gigaMap
public GigaMap gigaMap()
- Creates a new
GigaMap
instance if non already created.
Copyright © GigaSpaces.