All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.mnemonic.services.triggers.pipeline.api.TriggerEventConsumer Maven / Gradle / Ivy

There is a newer version: 0.0.22
Show newest version
package no.mnemonic.services.triggers.pipeline.api;

/**
 * Interface used for submitting {@link TriggerEvent}s to an external consumer for processing.
 */
public interface TriggerEventConsumer {

  /**
   * Submit {@link TriggerEvent}s for processing to an external consumer.
   * 

* A {@link SubmissionException} will be thrown if the event could not be accepted for processing. No exception does * not indicate that the event was successfully processed. Processing will be performed independently from submission * to this consumer and the submitting service will not be notified about failed or successful processing of an event. *

* Events should only be submitted after the operation creating the event finished completely, for example only after * all transactions have been successfully committed. * * @param event {@link TriggerEvent} submitted for processing * @throws SubmissionException Thrown if event could not be accepted for processing */ void submit(TriggerEvent event) throws SubmissionException; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy