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
Since:
6.3.0
See Also:
  • Constructor Details

    • KafkaSingleTopicProperties

      public KafkaSingleTopicProperties()
  • Method Details

    • getName

      public String 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

      public String 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

      public Map<String,String> getConfig()
      Additional configuration options, as pointed out by TopicConfig.
    • setName

      public KafkaSingleTopicProperties setName(String name)
      Set the name of the topic.
      Returns:
      this.
    • setPartitions

      public KafkaSingleTopicProperties setPartitions(int partitions)
      Set the number of partitions (default 1).
      Returns:
      this.
    • setReplicas

      public KafkaSingleTopicProperties setReplicas(int replicas)
      Set the number of replicas (default 1).
      Returns:
      this.
    • setCompressionType

      public KafkaSingleTopicProperties setCompressionType(String compressionType)
      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

      public KafkaSingleTopicProperties setConfig(Map<String,String> config)
      Additional configuration options, as pointed out by TopicConfig.
      Returns:
      this.