public class StreamsConfig extends AbstractConfig
| Modifier and Type | Class and Description |
|---|---|
static class |
StreamsConfig.InternalConfig |
| Constructor and Description |
|---|
StreamsConfig(Map<?,?> props) |
| Modifier and Type | Method and Description |
|---|---|
static String |
consumerPrefix(String consumerProp)
Prefix a property with
CONSUMER_PREFIX. |
Map<String,Object> |
getConsumerConfigs(StreamThread streamThread,
String groupId,
String clientId)
Get the configs specific to the Consumer.
|
Map<String,Object> |
getProducerConfigs(String clientId)
Get the configs for the Producer.
|
Map<String,Object> |
getRestoreConsumerConfigs(String clientId)
Get the consumer config for the restore-consumer.
|
Serde |
keySerde() |
static void |
main(String[] args) |
static String |
producerPrefix(String producerProp)
Prefix a property with
PRODUCER_PREFIX. |
Serde |
valueSerde() |
equals, get, getBoolean, getClass, getConfiguredInstance, getConfiguredInstances, getDouble, getInt, getList, getLong, getPassword, getShort, getString, hashCode, ignore, logUnused, originals, originalsStrings, originalsWithPrefix, unused, valuespublic static final String CONSUMER_PREFIX
public static final String PRODUCER_PREFIX
public static final String STATE_DIR_CONFIG
state.dirpublic static final String ZOOKEEPER_CONNECT_CONFIG
zookeeper.connectpublic static final String COMMIT_INTERVAL_MS_CONFIG
commit.interval.mspublic static final String POLL_MS_CONFIG
poll.mspublic static final String NUM_STREAM_THREADS_CONFIG
num.stream.threadspublic static final String NUM_STANDBY_REPLICAS_CONFIG
num.standby.replicaspublic static final String BUFFERED_RECORDS_PER_PARTITION_CONFIG
buffered.records.per.partitionpublic static final String STATE_CLEANUP_DELAY_MS_CONFIG
state.cleanup.delaypublic static final String TIMESTAMP_EXTRACTOR_CLASS_CONFIG
timestamp.extractorpublic static final String PARTITION_GROUPER_CLASS_CONFIG
partition.grouperpublic static final String APPLICATION_ID_CONFIG
application.idpublic static final String APPLICATION_ID_DOC
public static final String REPLICATION_FACTOR_CONFIG
replication.factorpublic static final String REPLICATION_FACTOR_DOC
public static final String KEY_SERDE_CLASS_CONFIG
key.serdepublic static final String KEY_SERDE_CLASS_DOC
public static final String VALUE_SERDE_CLASS_CONFIG
value.serdepublic static final String VALUE_SERDE_CLASS_DOC
public static final String APPLICATION_SERVER_CONFIG
user.endpointpublic static final String APPLICATION_SERVER_DOC
public static final String METRICS_SAMPLE_WINDOW_MS_CONFIG
metrics.sample.window.mspublic static final String METRICS_NUM_SAMPLES_CONFIG
metrics.num.samplespublic static final String METRIC_REPORTER_CLASSES_CONFIG
metric.reporterspublic static final String BOOTSTRAP_SERVERS_CONFIG
bootstrap.serverspublic static final String CLIENT_ID_CONFIG
client.idpublic static final String ROCKSDB_CONFIG_SETTER_CLASS_CONFIG
rocksdb.config.setterpublic static final String ROCKSDB_CONFIG_SETTER_CLASS_DOC
public static final String WINDOW_STORE_CHANGE_LOG_ADDITIONAL_RETENTION_MS_CONFIG
windowstore.changelog.additional.retention.mspublic static final String WINDOW_STORE_CHANGE_LOG_ADDITIONAL_RETENTION_MS_DOC
public static final String CACHE_MAX_BYTES_BUFFERING_CONFIG
cache.max.bytes.bufferingpublic static final String CACHE_MAX_BYTES_BUFFERING_DOC
public StreamsConfig(Map<?,?> props)
public static String consumerPrefix(String consumerProp)
CONSUMER_PREFIX. This is used to isolate consumer configs
from producer configsconsumerProp - public static String producerPrefix(String producerProp)
PRODUCER_PREFIX. This is used to isolate producer configs
from consumer configsproducerProp - public Map<String,Object> getConsumerConfigs(StreamThread streamThread, String groupId, String clientId) throws ConfigException
CONSUMER_PREFIX
will be used in favor over their non-prefixed versions except in the case of ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG
where we always use the non-prefixed version as we only support reading/writing from/to the same Kafka ClusterstreamThread - the StreamThread creating a consumergroupId - consumer groupIdclientId - clientIdConfigExceptionpublic Map<String,Object> getRestoreConsumerConfigs(String clientId) throws ConfigException
CONSUMER_PREFIX
will be used in favor over their non-prefixed versions except in the case of ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG
where we always use the non-prefixed version as we only support reading/writing from/to the same Kafka ClusterclientId - clientIdConfigExceptionpublic Map<String,Object> getProducerConfigs(String clientId)
PRODUCER_PREFIX
will be used in favor over their non-prefixed versions except in the case of ProducerConfig.BOOTSTRAP_SERVERS_CONFIG
where we always use the non-prefixed version as we only support reading/writing from/to the same Kafka ClusterclientId - clientIdConfigExceptionpublic Serde keySerde()
public Serde valueSerde()
public static void main(String[] args)