Class MongoTransactionBufferedEventPublisher
java.lang.Object
dev.getelements.elements.dao.mongo.guice.MongoTransactionBufferedEventPublisher
Buffers events during a transaction and publishes them only if the transaction commits. In the event of a rollback,
this clears all events being buffered as they are no longer valid.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidrollback()voidsetElementRegistry(ElementRegistry elementRegistry) voidsetTransaction(Transaction transaction)
-
Constructor Details
-
MongoTransactionBufferedEventPublisher
public MongoTransactionBufferedEventPublisher()
-
-
Method Details
-
accept
-
postCommit
public void postCommit() -
rollback
public void rollback() -
getTransaction
-
setTransaction
-
getElementRegistry
-
setElementRegistry
@Inject public void setElementRegistry(@Named("dev.getelements.elements.sdk.element.registry.root") ElementRegistry elementRegistry)
-