public interface StreamDescriptor
extends java.lang.Cloneable
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAdminPerms() |
boolean |
getAutoCreateTopics() |
boolean |
getCompact()
Gets log compaction on a stream.
|
long |
getCompactionThrottleFactor() |
java.lang.String |
getCompressionAlgo() |
java.lang.String |
getConsumePerms() |
java.lang.String |
getCopyPerms() |
int |
getDefaultPartitions() |
TimestampType |
getDefaultTimestampType() |
long |
getDeleteRetentionMS()
Applies only if log compaction is enabled on the stream.
|
boolean |
getForce() |
boolean |
getIsChangelog() |
long |
getMinCompactionLagMS()
Applies only if log compaction is enabled on the stream.
|
java.lang.String |
getProducePerms() |
long |
getProducerIdExpirySecs() |
long |
getTimeToLiveSec() |
java.lang.String |
getTopicPerms() |
void |
setAdminPerms(java.lang.String perms)
Sets the admin permission ace.
|
void |
setAutoCreateTopics(boolean allow)
Sets if topics should be auto-created when a message is produced.
|
void |
setCompact(boolean compact)
Sets the log compaction on stream.
|
void |
setCompactionThrottleFactor(long tf) |
void |
setCompressionAlgo(java.lang.String algo)
Sets the compression algo.
|
void |
setConsumePerms(java.lang.String perms)
Sets the consume permission ace.
|
void |
setCopyPerms(java.lang.String perms)
Sets the copy permission ace.
|
void |
setDefaultPartitions(int numPartitions)
Sets the default number of partitions per topic.
|
void |
setDefaultTimestampType(TimestampType logAppendTime)
Sets timestamp type
|
void |
setDeleteRetentionMS(long ts)
Set the time in millisecond for which delete records are retained.
|
void |
setForce() |
void |
setIsChangelog(boolean ischglog)
Sets the type of the stream to be Changelog.
|
void |
setMinCompactionLagMS(long ts)
Set time in millisecond a message should remain uncompacted in the
topic-partition.Applies only if log compaction is enabled on the stream.
|
void |
setProducePerms(java.lang.String perms)
Sets the producer permission ace.
|
void |
setProducerIdExpirySecs(long producerIdExpirySecs)
Sets the producer id expiry
|
void |
setTimeToLiveSec(long sec)
Sets the time-to-live for messages.
|
void |
setTopicPerms(java.lang.String perms)
Sets the topic permission ace.
|
int getDefaultPartitions()
void setDefaultPartitions(int numPartitions)
numPartitions
- the number of partitionslong getTimeToLiveSec()
void setTimeToLiveSec(long sec)
sec
- the time to livejava.lang.String getCompressionAlgo()
void setCompressionAlgo(java.lang.String algo)
algo
- the compression algorithm name.boolean getAutoCreateTopics()
true
if topics should be auto-created when a message is
produced.void setAutoCreateTopics(boolean allow)
allow
- true
if topics should be auto-created.java.lang.String getProducePerms()
void setProducePerms(java.lang.String perms)
perms
- the producer permission ace.java.lang.String getConsumePerms()
void setConsumePerms(java.lang.String perms)
perms
- the consume permission ace.java.lang.String getTopicPerms()
void setTopicPerms(java.lang.String perms)
perms
- the topic permission ace.java.lang.String getCopyPerms()
void setCopyPerms(java.lang.String perms)
perms
- the copy permission ace.java.lang.String getAdminPerms()
void setAdminPerms(java.lang.String perms)
perms
- the admin permission ace.void setIsChangelog(boolean ischglog)
boolean getIsChangelog()
true
if this stream is changelog type.void setDefaultTimestampType(TimestampType logAppendTime)
logAppendTime
- can be CREATE_TIME or LOG_APPEND_TIMETimestampType getDefaultTimestampType()
void setCompact(boolean compact)
boolean getCompact()
true
if stream has log compaction set.void setForce()
boolean getForce()
long getMinCompactionLagMS()
void setMinCompactionLagMS(long ts)
ts
- time in millisecondslong getCompactionThrottleFactor()
void setCompactionThrottleFactor(long tf)
long getDeleteRetentionMS()
void setDeleteRetentionMS(long ts)
ts
- time in millisecondsvoid setProducerIdExpirySecs(long producerIdExpirySecs)
producerIdExpirySecs
- the producer id expiry in secs.long getProducerIdExpirySecs()