
com.evento.common.messaging.consumer.SagaEventConsumer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of evento-common Show documentation
Show all versions of evento-common Show documentation
Common Library of Object and Algorithms for Evento Framework
The newest version!
package com.evento.common.messaging.consumer;
import com.evento.common.modeling.messaging.dto.PublishedEvent;
import com.evento.common.modeling.state.SagaState;
/**
* The SagaEventConsumer interface represents a consumer for saga events.
*/
public interface SagaEventConsumer {
/**
* Consumes a published event for a saga and returns the updated saga state.
*
* @param sagaStateFetcher the saga state fetcher used to retrieve the last state of the saga
* @param event the published event to be consumed
* @return the updated saga state
* @throws Exception if an error occurs during consumption
*/
SagaState consume(SagaStateFetcher sagaStateFetcher, PublishedEvent event) throws Exception;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy