GigaSpaces XAP 10.0.1 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.destroy(); // 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)
           
 GigaSpace create()
          Creates a new GigaSpace instance if non already created.
 GigaSpaceConfigurer defaultChangeModifiers(ChangeModifiers defaultChangeModifiers)
           
 GigaSpaceConfigurer defaultClearModifiers(ClearModifiers defaultClearModifiers)
           
 GigaSpaceConfigurer defaultCountModifiers(CountModifiers defaultCountModifiers)
           
 GigaSpaceConfigurer defaultIsolationLevel(int defaultIsolationLevel)
           
 GigaSpaceConfigurer defaultReadModifiers(ReadModifiers defaultReadModifiers)
           
 GigaSpaceConfigurer defaultReadTimeout(long defaultReadTimeout)
           
 GigaSpaceConfigurer defaultTakeModifiers(TakeModifiers defaultTakeModifiers)
           
 GigaSpaceConfigurer defaultTakeTimeout(long defaultTakeTimeout)
           
 GigaSpaceConfigurer defaultWriteLease(long defaultWriteLease)
           
 GigaSpaceConfigurer defaultWriteModifiers(WriteModifiers defaultWriteModifiers)
           
 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)

defaultWriteModifiers

public GigaSpaceConfigurer defaultWriteModifiers(WriteModifiers defaultWriteModifiers)
See Also:
GigaSpaceFactoryBean.setDefaultWriteModifiers(com.gigaspaces.client.WriteModifiers[])

defaultReadModifiers

public GigaSpaceConfigurer defaultReadModifiers(ReadModifiers defaultReadModifiers)
See Also:
GigaSpaceFactoryBean.setDefaultReadModifiers(com.gigaspaces.client.ReadModifiers[])

defaultTakeModifiers

public GigaSpaceConfigurer defaultTakeModifiers(TakeModifiers defaultTakeModifiers)
See Also:
GigaSpaceFactoryBean.setDefaultTakeModifiers(com.gigaspaces.client.TakeModifiers[])

defaultCountModifiers

public GigaSpaceConfigurer defaultCountModifiers(CountModifiers defaultCountModifiers)
See Also:
GigaSpaceFactoryBean.setDefaultCountModifiers(com.gigaspaces.client.CountModifiers[])

defaultClearModifiers

public GigaSpaceConfigurer defaultClearModifiers(ClearModifiers defaultClearModifiers)
See Also:
GigaSpaceFactoryBean.setDefaultClearModifiers(com.gigaspaces.client.ClearModifiers[])

defaultChangeModifiers

public GigaSpaceConfigurer defaultChangeModifiers(ChangeModifiers defaultChangeModifiers)
See Also:
GigaSpaceFactoryBean.setDefaultChangeModifiers(com.gigaspaces.client.ChangeModifiers[])

transactionManager

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

create

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


gigaSpace

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

See Also:
create()

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.