Package de.otto.synapse.endpoint.sender
Interface MessageSenderEndpointFactory
-
public interface MessageSenderEndpointFactory
-
-
Method Summary
Modifier and Type Method Description MessageSenderEndpointcreate(java.lang.String channelName)Creates and returns aAbstractMessageSenderEndpointfor a messaging channel.booleanmatches(java.lang.Class<? extends Selector> channelSelector)Returns true if the factory is capable to create aMessageSenderEndpointmatching the given selectors, false otherwise.
-
-
-
Method Detail
-
create
MessageSenderEndpoint create(@Nonnull java.lang.String channelName)
Creates and returns aAbstractMessageSenderEndpointfor a messaging channel.- Parameters:
channelName- the name of the channel of the createdMessageSenderEndpoint- Returns:
- MessagerSenderEndpoint
-
matches
boolean matches(java.lang.Class<? extends Selector> channelSelector)
Returns true if the factory is capable to create aMessageSenderEndpointmatching the given selectors, false otherwise.- Parameters:
channelSelector- Set of channel selectors- Returns:
- boolean
-
-