public interface StreamDescriptor
extends java.lang.Cloneable
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAdminPerms() |
boolean |
getAutoCreateTopics() |
java.lang.String |
getCompressionAlgo() |
java.lang.String |
getConsumePerms() |
java.lang.String |
getCopyPerms() |
int |
getDefaultPartitions() |
java.lang.String |
getProducePerms() |
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 |
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 |
setProducePerms(java.lang.String perms)
Sets the producer permission ace.
|
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.