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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ConfluentCloudDestination -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ConfluentCloudDestinationbuilder(ConfluentCloudDestination template) create builder for ConfluentCloudDestination instancecopyDeep()static ConfluentCloudDestinationdeepCopy(ConfluentCloudDestination template) factory method to create a deep copy of ConfluentCloudDestination@NotNull StringgetAcks()The Kafkaacksvalue.@NotNull StringPartially hidden on retrieval for security reasons.@NotNull StringPartially hidden on retrieval for security reasons.@NotNull StringURL to the bootstrap server including the port number in the format<xxxxx>.<region>.<provider>.confluent.cloud:9092.getKey()The Kafka record key.@NotNull StringgetTopic()The name of the topic.static ConfluentCloudDestinationof()factory methodstatic ConfluentCloudDestinationof(ConfluentCloudDestination template) factory method to create a shallow copy ConfluentCloudDestinationvoidThe Kafkaacksvalue.voidPartially hidden on retrieval for security reasons.voidsetApiSecret(String apiSecret) Partially hidden on retrieval for security reasons.voidsetBootstrapServer(String bootstrapServer) URL to the bootstrap server including the port number in the format<xxxxx>.<region>.<provider>.confluent.cloud:9092.voidThe Kafka record key.voidThe name of the topic.static com.fasterxml.jackson.core.type.TypeReference<ConfluentCloudDestination>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor 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
acksvalue.- 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
acksvalue.- 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
-
copyDeep
ConfluentCloudDestination copyDeep()- Specified by:
copyDeepin interfaceDestination
-
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
-