|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.events.AbstractSpaceListeningContainer org.openspaces.events.AbstractEventListenerContainer org.openspaces.events.AbstractTemplateEventListenerContainer org.openspaces.events.AbstractTransactionalEventListenerContainer
public abstract class AbstractTransactionalEventListenerContainer
Field Summary |
---|
Fields inherited from class org.openspaces.events.AbstractEventListenerContainer |
---|
failedEvents, processedEvents |
Fields inherited from class org.openspaces.events.AbstractSpaceListeningContainer |
---|
beanName, logger |
Constructor Summary | |
---|---|
AbstractTransactionalEventListenerContainer()
|
Method Summary | |
---|---|
protected DefaultTransactionDefinition |
getTransactionDefinition()
|
protected PlatformTransactionManager |
getTransactionManager()
Return the Spring PlatformTransactionManager to use for transactional wrapping of message reception plus listener execution. |
String |
getTransactionManagerName()
|
void |
initialize()
Initialize this container. |
protected boolean |
isTransactional()
|
void |
setDisableTransactionValidation(boolean disableTransactionValidation)
Should transaction validation be enabled or not (verify and fail if transaction manager is provided and the GigaSpace is not transactional). |
void |
setTransactionIsolationLevel(int transactionIsolationLevel)
Specify the transaction isolation to use for transactional wrapping. |
void |
setTransactionIsolationLevelName(String transactionIsolationLevelName)
Specify the transaction isolation to use for transactional wrapping. |
void |
setTransactionManager(PlatformTransactionManager transactionManager)
Specify the Spring PlatformTransactionManager to use
for transactional wrapping of listener execution. |
void |
setTransactionName(String transactionName)
Specify the transaction name to use for transactional wrapping. |
void |
setTransactionTimeout(int transactionTimeout)
Specify the transaction timeout to use for transactional wrapping, in seconds. |
protected void |
validateConfiguration()
Validate the configuration of this container. |
Methods inherited from class org.openspaces.events.AbstractTemplateEventListenerContainer |
---|
afterPropertiesSet, getReceiveTemplate, getTemplate, isPerformSnapshot, setPerformSnapshot, setTemplate |
Methods inherited from class org.openspaces.events.AbstractEventListenerContainer |
---|
doStart, executeListener, getActualEventListener, getApplicationContext, getEventListener, getEventListenerClass, getFailedEvents, getProcessedEvents, handleListenerException, invokeExceptionListener, invokeListener, setApplicationContext, setEventListener, setEventListenerRef |
Methods inherited from class org.openspaces.events.AbstractSpaceListeningContainer |
---|
destroy, doAfterStart, doBeforeStop, doInitialize, doRescheduleTask, doShutdown, doStop, getBeanName, getGigaSpace, getStatus, isActive, isRunning, message, onApplicationEvent, rescheduleTaskIfNecessary, setActiveWhenPrimary, setAutoStart, setBeanName, setGigaSpace, setRegisterSpaceModeListener, shutdown, start, stop, waitWhileNotRunning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.openspaces.pu.service.ServiceDetailsProvider |
---|
getServicesDetails |
Methods inherited from interface org.openspaces.pu.service.ServiceMonitorsProvider |
---|
getServicesMonitors |
Constructor Detail |
---|
public AbstractTransactionalEventListenerContainer()
Method Detail |
---|
public void setTransactionManager(PlatformTransactionManager transactionManager)
PlatformTransactionManager
to use
for transactional wrapping of listener execution.
Default is none, not performing any transactional wrapping.
protected final PlatformTransactionManager getTransactionManager()
public void setTransactionName(String transactionName)
TransactionDefinition.getName()
public void setTransactionTimeout(int transactionTimeout)
TransactionDefinition.getTimeout()
public void setTransactionIsolationLevel(int transactionIsolationLevel)
DefaultTransactionDefinition.setIsolationLevel(int)
public void setTransactionIsolationLevelName(String transactionIsolationLevelName)
DefaultTransactionDefinition.setIsolationLevelName(String)
protected DefaultTransactionDefinition getTransactionDefinition()
public void setDisableTransactionValidation(boolean disableTransactionValidation)
false
.
public void initialize() throws DataAccessException
AbstractSpaceListeningContainer
true
will call AbstractSpaceListeningContainer.doStart()
(if it is set to true
,
lifecycle of the container will be controlled by the current space mode).
AbstractSpaceListeningContainer.doInitialize()
will be called for additional initialization after the possible
AbstractSpaceListeningContainer.doStart()
call.
initialize
in class AbstractTemplateEventListenerContainer
DataAccessException
AbstractSpaceListeningContainer.onApplicationEvent(org.springframework.context.ApplicationEvent)
protected void validateConfiguration()
AbstractSpaceListeningContainer
validateConfiguration
in class AbstractSpaceListeningContainer
public String getTransactionManagerName()
protected boolean isTransactional()
|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |