|
GigaSpaces XAP 10.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openspaces.core.GigaMapFactoryBean
public class GigaMapFactoryBean
| Field Summary | |
|---|---|
static String |
PREFIX_ISOLATION
Prefix for the isolation constants defined in TransactionDefinition |
| Constructor Summary | |
|---|---|
GigaMapFactoryBean()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
void |
destroy()
|
Object |
getObject()
Return GigaMap implementation constructed in
the afterPropertiesSet() phase. |
Class<? extends GigaMap> |
getObjectType()
|
boolean |
isSingleton()
Returns true as this is a singleton. |
void |
setBeanName(String beanName)
|
void |
setDefaultIsolationLevel(int defaultIsolationLevel)
Set the default isolation level. |
void |
setDefaultIsolationLevelName(String constantName)
Set the default isolation level by the name of the corresponding constant in TransactionDefinition, e.g. |
void |
setDefaultLockTimeToLive(long defaultLockTimeToLive)
Sets (in milliseconds) the default time to live for locks. |
void |
setDefaultTimeToLive(long defaultTimeToLive)
Sets the default time to live (in milliseconds) for new entries. |
void |
setDefaultWaitForResponse(long defaultWaitForResponse)
Sets (in milliseconds) the default wait timeout when perfoming Map.get(Object) or
Map.remove(Object). |
void |
setDefaultWaitingForLockTimeout(long defaultWaitingForLockTimeout)
Sets (in milliseconds) the default time to wait for a given lock when locking. |
void |
setExTranslator(ExceptionTranslator exTranslator)
Sets the exception translator that will be used by the created GigaMap. |
void |
setMap(IMap map)
Sets the map that will be used by the created GigaMap. |
void |
setTransactionManager(PlatformTransactionManager transactionManager)
Set the transaction manager to enable transactional operations. |
void |
setTxProvider(TransactionProvider txProvider)
Sets the transaction provider that will be used by the created GigaMap. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PREFIX_ISOLATION
| Constructor Detail |
|---|
public GigaMapFactoryBean()
| Method Detail |
|---|
public void setMap(IMap map)
Sets the map that will be used by the created GigaMap.
This is a required parameter to the factory.
map - The map usedpublic void setTxProvider(TransactionProvider txProvider)
Sets the transaction provider that will be used by the created GigaMap.
This is an optional parameter and defaults to DefaultTransactionProvider.
txProvider - The transaction provider to usepublic void setExTranslator(ExceptionTranslator exTranslator)
Sets the exception translator that will be used by the created GigaMap.
This is an optional parameter and defaults to DefaultExceptionTranslator.
exTranslator - The exception translator to usepublic void setDefaultWaitForResponse(long defaultWaitForResponse)
Map.get(Object) or
Map.remove(Object). Defaults to NO WAIT (0).
public void setDefaultTimeToLive(long defaultTimeToLive)
public void setDefaultLockTimeToLive(long defaultLockTimeToLive)
public void setDefaultWaitingForLockTimeout(long defaultWaitingForLockTimeout)
public final void setDefaultIsolationLevelName(String constantName)
throws IllegalArgumentException
constantName - name of the constant
IllegalArgumentException - if the supplied value is not resolvable
to one of the ISOLATION_ constants or is nullsetDefaultIsolationLevel(int),
TransactionDefinition.ISOLATION_DEFAULTpublic void setDefaultIsolationLevel(int defaultIsolationLevel)
IllegalArgumentException - if the supplied value is not
one of the ISOLATION_ constantsTransactionDefinition.ISOLATION_DEFAULTpublic void setTransactionManager(PlatformTransactionManager transactionManager)
Set the transaction manager to enable transactional operations. Can be null
if transactional support is not required or the default space is used as a transactional context.
public void setBeanName(String beanName)
setBeanName in interface BeanNameAwarepublic void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanpublic Object getObject()
GigaMap implementation constructed in
the afterPropertiesSet() phase.
getObject in interface FactoryBeanpublic Class<? extends GigaMap> getObjectType()
getObjectType in interface FactoryBeanpublic boolean isSingleton()
true as this is a singleton.
isSingleton in interface FactoryBean
public void destroy()
throws Exception
destroy in interface DisposableBeanException
|
GigaSpaces XAP 10.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||