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

de.otto.synapse.endpoint.receiver.MessageReceiverEndpoint Maven / Gradle / Ivy

Go to download

A library used at otto.de to implement Spring Boot based event-sourcing microservices.

There is a newer version: 0.33.1
Show newest version
package de.otto.synapse.endpoint.receiver;

import de.otto.synapse.consumer.MessageConsumer;
import de.otto.synapse.consumer.MessageDispatcher;
import de.otto.synapse.endpoint.MessageEndpoint;

import javax.annotation.Nonnull;

/**
 * Receiver-side {@code MessageEndpoint endpoint} of a Message Channel
 * 

* Message Endpoint *

*/ public interface MessageReceiverEndpoint extends MessageEndpoint { /** * Registers a MessageConsumer at the receiver endpoint. * * {@link MessageConsumer consumers} have to be thread safe as they might be called from multiple threads * in parallel (e.g. for kinesis streams there is one thread per shard). * * @param messageConsumer registered EventConsumer */ void register(MessageConsumer messageConsumer); /** * Returns the MessageDispatcher that is used to dispatch messages. * * @return MessageDispatcher */ @Nonnull MessageDispatcher getMessageDispatcher(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy