de.otto.synapse.endpoint.MessageEndpointFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of synapse-core Show documentation
Show all versions of synapse-core Show documentation
A library used at otto.de to implement Spring Boot based event-sourcing microservices.
package de.otto.synapse.endpoint;
import javax.annotation.Nonnull;
/*
* A factory used to create {@link MessageSenderEndpoint} instances.
*
*/
public interface MessageEndpointFactory extends Selectable {
/**
* Creates and returns a {@link MessageEndpoint} for a messaging channel.
*
* @param channelName the name of the channel of the created {@code MessageEndpoint}
* @return MessagerSenderEndpoint
*/
T create(@Nonnull String channelName);
}