camel-pubnub-kafka-connector sink configuration
Connector Description: Send and receive messages to/from PubNub data stream network for connected devices.
When using camel-pubnub-kafka-connector as sink make sure to use the following Maven dependency to have support for the connector:
<dependency>
<groupId>org.apache.camel.kafkaconnector</groupId>
<artifactId>camel-pubnub-kafka-connector</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel Kafka connector version -->
</dependency>
To use this Sink connector in Kafka connect you’ll need to set the following connector.class
connector.class=org.apache.camel.kafkaconnector.pubnub.CamelPubnubSinkConnector
The camel-pubnub sink connector supports 13 options, which are listed below.
Name | Description | Default | Required | Priority |
---|---|---|---|---|
camel.sink.path.channel |
The channel used for subscribing/publishing events |
null |
true |
HIGH |
camel.sink.endpoint.uuid |
UUID to be used as a device identifier, a default UUID is generated if not passed. |
null |
false |
MEDIUM |
camel.sink.endpoint.lazyStartProducer |
Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. |
false |
false |
MEDIUM |
camel.sink.endpoint.operation |
The operation to perform. PUBLISH: Default. Send a message to all subscribers of a channel. FIRE: allows the client to send a message to BLOCKS Event Handlers. These messages will go directly to any Event Handlers registered on the channel. HERENOW: Obtain information about the current state of a channel including a list of unique user-ids currently subscribed to the channel and the total occupancy count. WHERENOW: Obtain information about the current list of channels to which a uuid is subscribed to. GETSTATE: Used to get key/value pairs specific to a subscriber uuid. State information is supplied as a JSON object of key/value pairs SETSTATE: Used to set key/value pairs specific to a subscriber uuid GETHISTORY: Fetches historical messages of a channel. One of: [HERENOW] [WHERENOW] [GETSTATE] [SETSTATE] [GETHISTORY] [PUBLISH] [FIRE] |
null |
false |
MEDIUM |
camel.sink.endpoint.pubnub |
Reference to a Pubnub client in the registry. |
null |
false |
MEDIUM |
camel.sink.endpoint.authKey |
If Access Manager is utilized, client will use this authKey in all restricted requests. |
null |
false |
MEDIUM |
camel.sink.endpoint.cipherKey |
If cipher is passed, all communications to/from PubNub will be encrypted. |
null |
false |
MEDIUM |
camel.sink.endpoint.publishKey |
The publish key obtained from your PubNub account. Required when publishing messages. |
null |
false |
MEDIUM |
camel.sink.endpoint.secretKey |
The secret key used for message signing. |
null |
false |
MEDIUM |
camel.sink.endpoint.secure |
Use SSL for secure transmission. |
true |
false |
MEDIUM |
camel.sink.endpoint.subscribeKey |
The subscribe key obtained from your PubNub account. Required when subscribing to channels or listening for presence events |
null |
false |
MEDIUM |
camel.component.pubnub.lazyStartProducer |
Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. |
false |
false |
MEDIUM |
camel.component.pubnub.autowiredEnabled |
Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. |
true |
false |
MEDIUM |
The camel-pubnub sink connector has no converters out of the box.
The camel-pubnub sink connector has no transforms out of the box.
The camel-pubnub sink connector has no aggregation strategies out of the box.