de.otto.synapse.endpoint.Selectable 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 de.otto.synapse.channel.selector.Selector;
/*
* A type that is selectable.
*
*/
public interface Selectable {
/**
* Returns true if the factory is capable to create a {@link MessageEndpoint} matching the given
* selector, false otherwise.
*
* @param channelSelector the selector
* @return boolean
*/
boolean matches(final Class extends Selector> channelSelector);
Class extends Selector> selector();
}