Class KafkaSingleTopicProperties
java.lang.Object
org.apereo.cas.configuration.model.support.kafka.KafkaSingleTopicProperties
- All Implemented Interfaces:
Serializable
,CasFeatureModule
@RequiresModule(name="cas-server-support-kafka-core")
public class KafkaSingleTopicProperties
extends Object
implements Serializable, CasFeatureModule
This is
KafkaSingleTopicProperties
.- Since:
- 6.3.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apereo.cas.configuration.features.CasFeatureModule
CasFeatureModule.FeatureCatalog
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSpecify the final compression type for a given topic.Additional configuration options, as pointed out byTopicConfig
.getName()
Set the name of the topic.int
Set the number of partitions (default 1).int
Set the number of replicas (default 1).setCompressionType
(String compressionType) Specify the final compression type for a given topic.Additional configuration options, as pointed out byTopicConfig
.Set the name of the topic.setPartitions
(int partitions) Set the number of partitions (default 1).setReplicas
(int replicas) Set the number of replicas (default 1).Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apereo.cas.configuration.features.CasFeatureModule
isDefined, isUndefined
-
Constructor Details
-
KafkaSingleTopicProperties
public KafkaSingleTopicProperties()
-
-
Method Details
-
getName
Set the name of the topic. -
getPartitions
public int getPartitions()Set the number of partitions (default 1). -
getReplicas
public int getReplicas()Set the number of replicas (default 1). -
getCompressionType
Specify the final compression type for a given topic. This configuration accepts the standard compression codecs ('gzip', 'snappy', 'lz4', 'zstd'
). It additionally accepts 'uncompressed' which is equivalent to no compression; and 'producer' which means retain the original compression codec set by the producer. -
getConfig
Additional configuration options, as pointed out byTopicConfig
. -
setName
Set the name of the topic.- Returns:
this
.
-
setPartitions
Set the number of partitions (default 1).- Returns:
this
.
-
setReplicas
Set the number of replicas (default 1).- Returns:
this
.
-
setCompressionType
Specify the final compression type for a given topic. This configuration accepts the standard compression codecs ('gzip', 'snappy', 'lz4', 'zstd'
). It additionally accepts 'uncompressed' which is equivalent to no compression; and 'producer' which means retain the original compression codec set by the producer.- Returns:
this
.
-
setConfig
Additional configuration options, as pointed out byTopicConfig
.- Returns:
this
.
-