public class MStreamDescriptor extends java.lang.Object implements StreamDescriptor
| Constructor and Description |
|---|
MStreamDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAdminPerms() |
boolean |
getAutoCreateTopics() |
boolean |
getClientCompression() |
java.lang.String |
getCompressionAlgo() |
java.lang.String |
getConsumePerms() |
java.lang.String |
getCopyPerms() |
int |
getDefaultPartitions() |
java.lang.String |
getProducePerms() |
long |
getTimeToLiveSec() |
java.lang.String |
getTopicPerms() |
boolean |
hasAdminPerms() |
boolean |
hasAutoCreateTopics() |
boolean |
hasClientCompression() |
boolean |
hasCompressionAlgo() |
boolean |
hasConsumePerms() |
boolean |
hasCopyPerms() |
boolean |
hasDefaultPartitions() |
boolean |
hasProducePerms() |
boolean |
hasTimeToLiveSec() |
boolean |
hasTopicPerms() |
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 |
setClientCompression(boolean val) |
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 numFeeds)
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.
|
public boolean hasDefaultPartitions()
public int getDefaultPartitions()
getDefaultPartitions in interface StreamDescriptorpublic void setDefaultPartitions(int numFeeds)
StreamDescriptorsetDefaultPartitions in interface StreamDescriptornumFeeds - the number of partitionspublic boolean hasTimeToLiveSec()
public long getTimeToLiveSec()
getTimeToLiveSec in interface StreamDescriptorpublic void setTimeToLiveSec(long sec)
StreamDescriptorsetTimeToLiveSec in interface StreamDescriptorsec - the time to livepublic boolean hasCompressionAlgo()
public java.lang.String getCompressionAlgo()
getCompressionAlgo in interface StreamDescriptorpublic void setCompressionAlgo(java.lang.String algo)
StreamDescriptorsetCompressionAlgo in interface StreamDescriptoralgo - the compression algorithm name.public boolean hasClientCompression()
public boolean getClientCompression()
public void setClientCompression(boolean val)
public boolean hasAutoCreateTopics()
public boolean getAutoCreateTopics()
getAutoCreateTopics in interface StreamDescriptortrue if topics should be auto-created when a message is
produced.public void setAutoCreateTopics(boolean allow)
StreamDescriptorsetAutoCreateTopics in interface StreamDescriptorallow - true if topics should be auto-created.public boolean hasProducePerms()
public java.lang.String getProducePerms()
getProducePerms in interface StreamDescriptorpublic void setProducePerms(java.lang.String perms)
StreamDescriptorsetProducePerms in interface StreamDescriptorperms - the producer permission ace.public boolean hasConsumePerms()
public java.lang.String getConsumePerms()
getConsumePerms in interface StreamDescriptorpublic void setConsumePerms(java.lang.String perms)
StreamDescriptorsetConsumePerms in interface StreamDescriptorperms - the consume permission ace.public boolean hasTopicPerms()
public java.lang.String getTopicPerms()
getTopicPerms in interface StreamDescriptorpublic void setTopicPerms(java.lang.String perms)
StreamDescriptorsetTopicPerms in interface StreamDescriptorperms - the topic permission ace.public boolean hasCopyPerms()
public java.lang.String getCopyPerms()
getCopyPerms in interface StreamDescriptorpublic void setCopyPerms(java.lang.String perms)
StreamDescriptorsetCopyPerms in interface StreamDescriptorperms - the copy permission ace.public boolean hasAdminPerms()
public java.lang.String getAdminPerms()
getAdminPerms in interface StreamDescriptorpublic void setAdminPerms(java.lang.String perms)
StreamDescriptorsetAdminPerms in interface StreamDescriptorperms - the admin permission ace.