Creates a new instance of the connection component.
The Kafka admin client object;
Kafka connection properties
The Kafka connection pool object.
The connection resolver.
The logger.
The configuration options.
The Kafka message producer object;
Topic subscriptions
Checks if connection is open
an error is connection is closed or null
otherwise.
Closes component and frees used resources.
(optional) transaction id to trace execution through call chain.
callback function that receives error or null no errors occured.
Commit a message offset.
a topic name
(optional) a consumer group id
a partition number
a message offset
a message listener
(optional) callback to receive notification on operation result
Configures component by passing configuration parameters.
configuration parameters to be set.
Connect admin client on demand.
a callback to get notification on connection result.
Creates a message queue. If connection doesn't support this function it exists without error.
the name of the queue to be created.
notifies about completion with error or null for success.
Deletes a message queue. If connection doesn't support this function it exists without error.
the name of the queue to be deleted.
notifies about completion with error or null for success.
Checks if the component is opened.
true if the component has been opened and false otherwise.
Opens the component.
(optional) transaction id to trace execution through call chain.
callback function that receives error or null no errors occured.
Publish a message to a specified topic
a topic where the message will be placed
a list of messages to be published
publishing options
(optional) callback to receive notification on operation result
Reads a list of registered queue names. If connection doesn't support this function returnes an empty list.
Seek a message offset.
a topic name
(optional) a consumer group id
a partition number
a message offset
a message listener
(optional) callback to receive notification on operation result
Sets references to dependent components.
references to locate the component dependencies.
Subscribe to a topic
(optional) a consumer group id
subscription options
a message listener
(optional) callback to receive notification on operation result
Unsubscribe from a previously subscribed topic
a topic name
(optional) a consumer group id
a message listener
(optional) callback to receive notification on operation result
Generated using TypeDoc
Kafka connection using plain driver.
By defining a connection and sharing it through multiple message queues you can reduce number of used database connections.
Configuration parameters
References
*:logger:*:*:1.0
(optional) ILogger components to pass log messages*:discovery:*:*:1.0
(optional) IDiscovery services*:credential-store:*:*:1.0
(optional) Credential stores to resolve credentials