public class TransactionListenerAdapter extends Object implements org.apache.geode.cache.TransactionListener, org.apache.geode.cache.TransactionWriter
TransactionListenerAdapter class is an Apache Geode TransactionListener
and TransactionWriter implementation that publishes the TransactionEvent to application components
and beans declared in the Spring ApplicationContext using the ApplicationEventPublisher.TransactionEvent,
TransactionListener,
TransactionWriter,
ApplicationContext,
ApplicationEventPublisher| Constructor and Description |
|---|
TransactionListenerAdapter(ApplicationEventPublisher applicationEventPublisher)
Constructs a new instance of the
TransactionListenerAdapter initialized with the required
ApplicationEventPublisher to publish Apache Geode cache TransactionEvents
to application declared components and beans in a Spring ApplicationContext. |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCommit(org.apache.geode.cache.TransactionEvent event) |
void |
afterFailedCommit(org.apache.geode.cache.TransactionEvent event) |
void |
afterRollback(org.apache.geode.cache.TransactionEvent event) |
void |
beforeCommit(org.apache.geode.cache.TransactionEvent event) |
protected ApplicationEventPublisher |
getApplicationEventPublisher()
Returns a reference to the configured
ApplicationEventPublisher. |
public TransactionListenerAdapter(ApplicationEventPublisher applicationEventPublisher)
TransactionListenerAdapter initialized with the required
ApplicationEventPublisher to publish Apache Geode cache TransactionEvents
to application declared components and beans in a Spring ApplicationContext.applicationEventPublisher - ApplicationEventPublisher used to publish Apache Geode cache
TransactionEvents.IllegalArgumentException - if the ApplicationEventPublisher is null.ApplicationEventPublisher@NonNull protected ApplicationEventPublisher getApplicationEventPublisher()
ApplicationEventPublisher.ApplicationEventPublisher.ApplicationEventPublisherpublic void beforeCommit(org.apache.geode.cache.TransactionEvent event)
beforeCommit in interface org.apache.geode.cache.TransactionWriterpublic void afterCommit(org.apache.geode.cache.TransactionEvent event)
afterCommit in interface org.apache.geode.cache.TransactionListenerpublic void afterFailedCommit(org.apache.geode.cache.TransactionEvent event)
afterFailedCommit in interface org.apache.geode.cache.TransactionListenerpublic void afterRollback(org.apache.geode.cache.TransactionEvent event)
afterRollback in interface org.apache.geode.cache.TransactionListenerCopyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.