Interface MessagingConnector
- All Superinterfaces:
NamedService
A configured messaging connector capable of creating channel connections.
An implementation must support at least one direction by overriding incoming(MessagingIncomingConfig),
outgoing(MessagingOutgoingConfig), or both. Each successful invocation must return a fresh, unstarted channel
connection.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<IncomingChannel> incoming(MessagingIncomingConfig channelConfig) Create an incoming channel connection.default Stringname()Name of this implementation, as provided inConfiguredProvider.create(Config, String).default Optional<OutgoingChannel> outgoing(MessagingOutgoingConfig channelConfig) Create an outgoing channel connection.Configuration used to create this connector.Methods inherited from interface NamedService
typeModifier and TypeMethodDescriptiontype()Type of this implementation, to distinguish instances of same type, with differentNamedService.name().
-
Method Details
-
prototype
MessagingConnectorProviderConfig prototype()Configuration used to create this connector.- Returns:
- connector configuration
-
name
Description copied from interface:NamedServiceName of this implementation, as provided inConfiguredProvider.create(Config, String).- Specified by:
namein interfaceNamedService- Returns:
- name of this service
-
incoming
Create an incoming channel connection.- Parameters:
channelConfig- channel-specific configuration- Returns:
- incoming channel connection, or empty if this connector does not support incoming channels
-
outgoing
Create an outgoing channel connection.- Parameters:
channelConfig- channel-specific configuration- Returns:
- outgoing channel connection, or empty if this connector does not support outgoing channels
-