GigaSpaces XAP 9.5 API

org.openspaces.core
Class GigaMapConfigurer

java.lang.Object
  extended by 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

Constructor Summary
GigaMapConfigurer(IMap map)
           
 
Method Summary
 GigaMapConfigurer defaultIsolationLevel(int defaultIsolationLevel)
           
 GigaMapConfigurer defaultLockTimeToLive(long defaultLockTimeToLive)
           
 GigaMapConfigurer defaultTimeToLive(long defaultTimeToLive)
           
 GigaMapConfigurer defaultWaitingForLockTimeout(long defaultWaitingForLockTimeout)
           
 GigaMapConfigurer exTranslator(ExceptionTranslator exTranslator)
           
 GigaMap gigaMap()
          Creates a new GigaMap instance if non already created.
 GigaMapConfigurer setDefaultWaitForResponse(long defaultWaitForResponse)
           
 GigaMapConfigurer transactionManager(PlatformTransactionManager transactionManager)
           
 GigaMapConfigurer txProvider(TransactionProvider txProvider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GigaMapConfigurer

public GigaMapConfigurer(IMap map)
Method Detail

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.


GigaSpaces XAP 9.5 API

Copyright © GigaSpaces.