Package io.adamantic.quicknote
Interface Connector
- All Superinterfaces:
AutoCloseable,Channel
Handles connection details to specific remote relays
Every module should have its connector.
-
Method Summary
Modifier and TypeMethodDescriptionvoidPerforms the connector initialization.Returns a receiver with the given name.Returns a sender with the given name.
-
Method Details
-
initialize
Performs the connector initialization. After this method returns, the connector is supposed to be ready to create connections.- Parameters:
c- the configuration object.
-
sender
Returns a sender with the given name. A connector may perform channel pooling, lazy initialization, etc. Specific policies are implementation-dependent.- Parameters:
name- the name of the sender to retrieve.- Returns:
- the sender, ready to operate.
- Throws:
ChannelNotFound- if the sender cannot be instantiated and/or is unavailable.
-
receiver
Returns a receiver with the given name. A connector may perform channel pooling, lazy initialization, etc. Specific policies are implementation-dependent.- Parameters:
name- the name of the receiver to retrieve.- Returns:
- the receiver, ready to operate.
- Throws:
ChannelNotFound- if the receiver cannot be instantiated and/or is unavailable.
-