Interface ConfluentCloudDestination
- All Superinterfaces:
Destination
This destination can be used to push notifications to Confluent Cloud. To set up a Subscription of this type, first, create a topic in Confluent Cloud. Then, to allow Composable Commerce to push notifications to your topic, generate API keys for your topic, and create the Subscription destination using the generated credentials.
The Composable Commerce producer uses the following values: SASL_SSL
forsecurity.protocol
, PLAIN
forsasl.mechanism
, and the default value (1048576) for max.request.size
.
Example to create an instance using the builder pattern
ConfluentCloudDestination confluentCloudDestination = ConfluentCloudDestination.builder()
.bootstrapServer("{bootstrapServer}")
.apiKey("{apiKey}")
.apiSecret("{apiSecret}")
.acks("{acks}")
.topic("{topic}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ConfluentCloudDestination -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ConfluentCloudDestinationbuilder
(ConfluentCloudDestination template) create builder for ConfluentCloudDestination instancestatic ConfluentCloudDestination
deepCopy
(ConfluentCloudDestination template) factory method to create a deep copy of ConfluentCloudDestination@NotNull String
getAcks()
The Kafkaacks
value.@NotNull String
Partially hidden on retrieval for security reasons.@NotNull String
Partially hidden on retrieval for security reasons.@NotNull String
URL to the bootstrap server including the port number in the format<xxxxx>.<region>.<provider>.confluent.cloud:9092
.getKey()
The Kafka record key.@NotNull String
getTopic()
The name of the topic.static ConfluentCloudDestination
of()
factory methodstatic ConfluentCloudDestination
of
(ConfluentCloudDestination template) factory method to create a shallow copy ConfluentCloudDestinationvoid
The Kafkaacks
value.void
Partially hidden on retrieval for security reasons.void
setApiSecret
(String apiSecret) Partially hidden on retrieval for security reasons.void
setBootstrapServer
(String bootstrapServer) URL to the bootstrap server including the port number in the format<xxxxx>.<region>.<provider>.confluent.cloud:9092
.void
The Kafka record key.void
The name of the topic.static com.fasterxml.jackson.core.type.TypeReference<ConfluentCloudDestination>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.subscription.Destination
getType, withDestination
-
Field Details
-
CONFLUENT_CLOUD
discriminator value for ConfluentCloudDestination- See Also:
-
-
Method Details
-
getBootstrapServer
URL to the bootstrap server including the port number in the format
<xxxxx>.<region>.<provider>.confluent.cloud:9092
.- Returns:
- bootstrapServer
-
getApiKey
Partially hidden on retrieval for security reasons.
- Returns:
- apiKey
-
getApiSecret
Partially hidden on retrieval for security reasons.
- Returns:
- apiSecret
-
getAcks
The Kafka
acks
value.- Returns:
- acks
-
getTopic
The name of the topic.
- Returns:
- topic
-
getKey
String getKey()The Kafka record key.
- Returns:
- key
-
setBootstrapServer
URL to the bootstrap server including the port number in the format
<xxxxx>.<region>.<provider>.confluent.cloud:9092
.- Parameters:
bootstrapServer
- value to be set
-
setApiKey
Partially hidden on retrieval for security reasons.
- Parameters:
apiKey
- value to be set
-
setApiSecret
Partially hidden on retrieval for security reasons.
- Parameters:
apiSecret
- value to be set
-
setAcks
The Kafka
acks
value.- Parameters:
acks
- value to be set
-
setTopic
The name of the topic.
- Parameters:
topic
- value to be set
-
setKey
The Kafka record key.
- Parameters:
key
- value to be set
-
of
factory method- Returns:
- instance of ConfluentCloudDestination
-
of
factory method to create a shallow copy ConfluentCloudDestination- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ConfluentCloudDestination- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ConfluentCloudDestination- Returns:
- builder
-
builder
create builder for ConfluentCloudDestination instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withConfluentCloudDestination
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-