Package de.otto.synapse.endpoint.sender
Interface MessageSenderEndpointFactory
-
public interface MessageSenderEndpointFactory
-
-
Method Summary
Modifier and Type Method Description default MessageSenderEndpointcreate(java.lang.String channelName)Creates and returns aAbstractMessageSenderEndpointfor a messaging channel.MessageSenderEndpointcreate(java.lang.String channelName, MessageFormat messageFormat)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
default 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
-
create
MessageSenderEndpoint create(@Nonnull java.lang.String channelName, MessageFormat messageFormat)
Creates and returns aAbstractMessageSenderEndpointfor a messaging channel.- Parameters:
channelName- the name of the channel of the createdMessageSenderEndpointmessageFormat- the message format in which messages are serialized to- 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
-
-