Package io.adamantic.quicknote
Class Quicknote
java.lang.Object
io.adamantic.quicknote.Quicknote
Entry point for the Quicknote library.
- Author:
- Domenico Barra - domenico@adamantic.io
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidChanges the default client ID used by the library.Returns a connector for the given name, creating and starting it if necessary.static Quicknoteinstance()Lazily creates and initializes a singleton instance of the Quicknote library.Returns a receiver for the given name, delegating its retrieval to the specific connector hosting the receiver (specified in the configuration).Returns a sender for the given name, delegating its retrieval to the specific connector hosting the sender (specified in the configuration).
-
Method Details
-
clientId
Changes the default client ID used by the library. This is useful to get advanced delivery/redelivery semantics.- Parameters:
id- the new client ID to use.
-
instance
Lazily creates and initializes a singleton instance of the Quicknote library.- Returns:
- the instance, configured and ready for use
-
sender
Returns a sender for the given name, delegating its retrieval to the specific connector hosting the sender (specified in the configuration).- Parameters:
name- the name of the sender to return- Returns:
- the sender, ready for operation
- Throws:
ChannelNotFound- if the sender is not found and cannot be created.
-
receiver
Returns a receiver for the given name, delegating its retrieval to the specific connector hosting the receiver (specified in the configuration).- Parameters:
name- the name of the receiver to return- Returns:
- the receiver, ready for operation
- Throws:
ChannelNotFound- if the receiver is not found and cannot be created.
-
connector
Returns a connector for the given name, creating and starting it if necessary.- Parameters:
name- the name of the connector to return- Returns:
- the connector, ready for operation.
- Throws:
ConfigException- if the connector is not found and cannot be created.
-