GigaSpaces XAP 7.0 API

org.openspaces.core
Class GigaSpaceConfigurer

java.lang.Object
  extended by org.openspaces.core.GigaSpaceConfigurer

public class GigaSpaceConfigurer
extends Object

A simple programmatic configurer for GigaSpace instance wrapping the GigaSpaceFactoryBean.

Usage example:

 UrlSpaceConfigurer urlSpaceConfigurer = new UrlSpaceConfigurer("/./space").schema("persistent")
          .noWriteLeaseMode(true).lookupGroups(new String[] {"kimchy"});

 GigaSpace gigaSpace = new GigaSpaceConfigurer(urlSpaceConfigurer).defaultTakeTimeout(1000).gigaSpace();
 ...
 urlSpaceConfigurer.destroySpace(); // optional
 

Author:
kimchy

Constructor Summary
GigaSpaceConfigurer(IJSpace space)
          Constructs a new configurer based on the Space.
GigaSpaceConfigurer(SpaceConfigurer configurer)
          Constructs a new configurer based on the Space.
 
Method Summary
 GigaSpaceConfigurer clustered(boolean clustered)
           
 GigaSpaceConfigurer defaultIsolationLevel(int defaultIsolationLevel)
           
 GigaSpaceConfigurer defaultReadTimeout(long defaultReadTimeout)
           
 GigaSpaceConfigurer defaultTakeTimeout(long defaultTakeTimeout)
           
 GigaSpaceConfigurer defaultWriteLease(long defaultWriteLease)
           
 GigaSpaceConfigurer exTranslator(ExceptionTranslator exTranslator)
           
 GigaSpace gigaSpace()
          Creates a new GigaSpace instance if non already created.
 GigaSpaceConfigurer transactionManager(PlatformTransactionManager transactionManager)
           
 GigaSpaceConfigurer txProvider(TransactionProvider txProvider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GigaSpaceConfigurer

public GigaSpaceConfigurer(IJSpace space)
Constructs a new configurer based on the Space.


GigaSpaceConfigurer

public GigaSpaceConfigurer(SpaceConfigurer configurer)
Constructs a new configurer based on the Space.

Method Detail

txProvider

public GigaSpaceConfigurer txProvider(TransactionProvider txProvider)
See Also:
GigaSpaceFactoryBean.setTxProvider(org.openspaces.core.transaction.TransactionProvider)

exTranslator

public GigaSpaceConfigurer exTranslator(ExceptionTranslator exTranslator)
See Also:
GigaSpaceFactoryBean.setExTranslator(org.openspaces.core.exception.ExceptionTranslator)

clustered

public GigaSpaceConfigurer clustered(boolean clustered)
See Also:
GigaSpaceFactoryBean.setClustered(boolean)

defaultReadTimeout

public GigaSpaceConfigurer defaultReadTimeout(long defaultReadTimeout)
See Also:
GigaSpaceFactoryBean.setDefaultReadTimeout(long)

defaultTakeTimeout

public GigaSpaceConfigurer defaultTakeTimeout(long defaultTakeTimeout)
See Also:
GigaSpaceFactoryBean.setDefaultTakeTimeout(long)

defaultWriteLease

public GigaSpaceConfigurer defaultWriteLease(long defaultWriteLease)
See Also:
GigaSpaceFactoryBean.setDefaultWriteLease(long)

defaultIsolationLevel

public GigaSpaceConfigurer defaultIsolationLevel(int defaultIsolationLevel)
See Also:
GigaSpaceFactoryBean.setDefaultIsolationLevel(int)

transactionManager

public GigaSpaceConfigurer transactionManager(PlatformTransactionManager transactionManager)
See Also:
GigaSpaceFactoryBean.setTransactionManager(org.springframework.transaction.PlatformTransactionManager)

gigaSpace

public GigaSpace gigaSpace()
Creates a new GigaSpace instance if non already created.


GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.