public class GigaSpaceConfigurer extends Object
GigaSpace instance wrapping the
 GigaSpaceFactoryBean.
 Usage example:
 SpaceConfigurer spaceConfigurer = new EmbeddedSpaceConfigurer("mySpace");
 GigaSpace gigaSpace = new GigaSpaceConfigurer(spaceConfigurer).create();
 ...
 spaceConfigurer.close();
 | Modifier and Type | Field and Description | 
|---|---|
| static String | PREFIX_ISOLATIONPrefix for the isolation constants defined in TransactionDefinition | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | GigaSpaceConfigurer()For internal usage only | 
|   | GigaSpaceConfigurer(IJSpace space)Constructs a new configurer based on the Space. | 
|   | GigaSpaceConfigurer(SpaceConfigurer configurer)Constructs a new configurer based on the Space. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | close() | 
| GigaSpaceConfigurer | clustered(boolean clustered)Sets the cluster flag controlling if this  GigaSpacewill work
 with a clustered view of the space or directly with a cluster member. | 
| GigaSpace | create()Creates a new  GigaSpaceinstance if non already created. | 
| GigaSpaceConfigurer | defaultChangeModifiers(ChangeModifiers defaultChangeModifiers)Set the default  ChangeModifiersto be used for change operations on theGigaSpaceinstance. | 
| GigaSpaceConfigurer | defaultClearModifiers(ClearModifiers defaultClearModifiers)Set the default  ClearModifiersto be used for clear operations on theGigaSpaceinstance. | 
| GigaSpaceConfigurer | defaultCountModifiers(CountModifiers defaultCountModifiers)Set the default  CountModifiersto be used for count operations on theGigaSpaceinstance. | 
| GigaSpaceConfigurer | defaultIsolationLevel(int defaultIsolationLevel)Set the default isolation level. | 
| GigaSpaceConfigurer | defaultIsolationLevel(String name)Set the default isolation level. | 
| GigaSpaceConfigurer | defaultReadModifiers(ReadModifiers defaultReadModifiers)Set the default  ReadModifiersto be used for read operations on theGigaSpaceinstance. | 
| GigaSpaceConfigurer | defaultReadTimeout(long defaultReadTimeout)Sets the default read timeout for  GigaSpace.read(Object)andGigaSpace.readIfExists(Object)operations. | 
| GigaSpaceConfigurer | defaultTakeModifiers(TakeModifiers defaultTakeModifiers)Set the default  TakeModifiersto be used for take operations on theGigaSpaceinstance. | 
| GigaSpaceConfigurer | defaultTakeTimeout(long defaultTakeTimeout)Sets the default take timeout for  GigaSpace.take(Object)andGigaSpace.takeIfExists(Object)operations. | 
| GigaSpaceConfigurer | defaultWriteLease(long defaultWriteLease)Sets the default write lease for  GigaSpace.write(Object)operation. | 
| GigaSpaceConfigurer | defaultWriteModifiers(WriteModifiers defaultWriteModifiers)Set the default  WriteModifiersto be used for write operations on theGigaSpaceinstance. | 
| GigaSpaceConfigurer | exTranslator(ExceptionTranslator exTranslator)Sets the exception translator that will be used by the created  GigaSpace. | 
| Boolean | getClustered() | 
| ChangeModifiers | getDefaultChangeModifiers() | 
| ClearModifiers | getDefaultClearModifiers() | 
| CountModifiers | getDefaultCountModifiers() | 
| int | getDefaultIsolationLevel() | 
| ReadModifiers | getDefaultReadModifiers() | 
| long | getDefaultReadTimeout() | 
| TakeModifiers | getDefaultTakeModifiers() | 
| long | getDefaultTakeTimeout() | 
| long | getDefaultWriteLease() | 
| WriteModifiers | getDefaultWriteModifiers() | 
| ExceptionTranslator | getExTranslator() | 
| protected GigaSpace | getGigaSpaceIfInitialized() | 
| String | getName() | 
| IJSpace | getSpace() | 
| org.springframework.transaction.PlatformTransactionManager | getTransactionManager() | 
| TransactionProvider | getTxProvider() | 
| GigaSpace | gigaSpace()Creates a new  GigaSpaceinstance if non already created. | 
| protected DefaultGigaSpace | initialize() | 
| GigaSpaceConfigurer | name(String name)Sets the name of the GigaSpace instance which will be created. | 
| protected void | space(IJSpace space)For internal usage only | 
| GigaSpaceConfigurer | transactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)Set the transaction manager to enable transactional operations. | 
| GigaSpaceConfigurer | txProvider(TransactionProvider txProvider)Sets the transaction provider that will be used by the created  GigaSpace. | 
public static final String PREFIX_ISOLATION
public GigaSpaceConfigurer(IJSpace space)
public GigaSpaceConfigurer(SpaceConfigurer configurer)
protected GigaSpaceConfigurer()
GigaSpaceFactoryBeanprotected void space(IJSpace space)
GigaSpaceFactoryBeanpublic IJSpace getSpace()
public GigaSpaceConfigurer name(String name)
name - Name of the GigaSpace instance.public String getName()
public GigaSpaceConfigurer txProvider(TransactionProvider txProvider)
GigaSpace. This is an optional parameter and defaults to DefaultTransactionProvider.txProvider - The transaction provider to usepublic TransactionProvider getTxProvider()
public GigaSpaceConfigurer exTranslator(ExceptionTranslator exTranslator)
GigaSpace. This is an optional parameter and defaults to DefaultExceptionTranslator.exTranslator - The exception translator to usepublic ExceptionTranslator getExTranslator()
public GigaSpaceConfigurer clustered(boolean clustered)
GigaSpace will work
 with a clustered view of the space or directly with a cluster member. By default if this flag
 is not set it will be set automatically by this factory. It will be set to false
 if the space is an embedded one AND the space is not a local cache proxy. It will be set to
 true otherwise (i.e. the space is not an embedded space OR the space is a local
 cache proxy).clustered - If the GigaSpace is going to work with a
                  clustered view of the space or directly with a cluster memberpublic Boolean getClustered()
public GigaSpaceConfigurer defaultReadTimeout(long defaultReadTimeout)
GigaSpace.read(Object) and
 GigaSpace.readIfExists(Object) operations. Default to 0.public long getDefaultReadTimeout()
public GigaSpaceConfigurer defaultTakeTimeout(long defaultTakeTimeout)
GigaSpace.take(Object) and
 GigaSpace.takeIfExists(Object) operations. Default to 0.public long getDefaultTakeTimeout()
public GigaSpaceConfigurer defaultWriteLease(long defaultWriteLease)
GigaSpace.write(Object)
 operation. Default to Lease.FOREVER.public long getDefaultWriteLease()
public GigaSpaceConfigurer defaultIsolationLevel(int defaultIsolationLevel)
IllegalArgumentException - if the supplied value is not one of the ISOLATION_
                                  constantsTransactionDefinition.ISOLATION_DEFAULTpublic int getDefaultIsolationLevel()
public GigaSpaceConfigurer defaultIsolationLevel(String name)
IllegalArgumentException - if the supplied value is not one of the ISOLATION_
                                  constantsTransactionDefinition.ISOLATION_DEFAULTpublic GigaSpaceConfigurer defaultWriteModifiers(WriteModifiers defaultWriteModifiers)
WriteModifiers to be used for write operations on the GigaSpace instance. Defaults to WriteModifiers.UPDATE_OR_WRITEdefaultWriteModifiers - The default write modifiers.WriteModifierspublic WriteModifiers getDefaultWriteModifiers()
public GigaSpaceConfigurer defaultReadModifiers(ReadModifiers defaultReadModifiers)
ReadModifiers to be used for read operations on the GigaSpace
 instance. Defaults to ReadModifiers.READ_COMMITTEDdefaultReadModifiers - The default read modifiers.ReadModifierspublic ReadModifiers getDefaultReadModifiers()
public GigaSpaceConfigurer defaultTakeModifiers(TakeModifiers defaultTakeModifiers)
TakeModifiers to be used for take operations on the GigaSpace
 instance. Defaults to TakeModifiers.NONEdefaultTakeModifiers - The default take modifiers.TakeModifierspublic TakeModifiers getDefaultTakeModifiers()
public GigaSpaceConfigurer defaultCountModifiers(CountModifiers defaultCountModifiers)
CountModifiers to be used for count operations on the GigaSpace instance. Defaults to CountModifiers.NONEdefaultCountModifiers - The default count modifiers.CountModifierspublic CountModifiers getDefaultCountModifiers()
public GigaSpaceConfigurer defaultClearModifiers(ClearModifiers defaultClearModifiers)
ClearModifiers to be used for clear operations on the GigaSpace instance. Defaults to ClearModifiers.NONEdefaultClearModifiers - The default clear modifiers.ClearModifierspublic ClearModifiers getDefaultClearModifiers()
public GigaSpaceConfigurer defaultChangeModifiers(ChangeModifiers defaultChangeModifiers)
ChangeModifiers to be used for change operations on the GigaSpace instance. Defaults to ChangeModifiers.NONEdefaultChangeModifiers - The default change modifiers.ChangeModifierspublic ChangeModifiers getDefaultChangeModifiers()
public GigaSpaceConfigurer transactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
null
 if transactional support is not required or the default space is used as a transactional
 context.public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
protected GigaSpace getGigaSpaceIfInitialized()
public GigaSpace gigaSpace()
GigaSpace instance if non already created.create()protected DefaultGigaSpace initialize()
Copyright © GigaSpaces.