public class Topic extends AbstractModel
Constructor and Description |
---|
Topic() |
Topic(Topic source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getAverageMsgSize()
Get Average size of the messages published in the last interval in bytes.
|
String |
getConsumerCount()
Get The number of consumers.
|
String |
getConsumerLimit()
Get The maximum number of consumers.
|
String |
getCreateTime()
Get Creation time.
|
String |
getEnvironmentId()
Get Environment (namespace) name.
|
String |
getLastConfirmedEntry()
Get The total number of recorded messages.
|
String |
getLastLedgerCreatedTimestamp()
Get Time when the last ledger was created.
|
String |
getMsgRateIn()
Get The number of messages published by local and replicated publishers per second.
|
String |
getMsgRateOut()
Get The total number of messages delivered by local and replicated consumers per second.
|
String |
getMsgThroughputIn()
Get The size (in bytes) of messages published by local and replicated publishers per second.
|
String |
getMsgThroughputOut()
Get The size (in bytes) of messages delivered by local and replicated consumers per second.
|
String |
getNumberOfEntries()
Get The total number of recorded messages.
|
Long |
getPartitions()
Get Partition count ≤ 0: there are no subpartitions in the topic.
|
String |
getProducerCount()
Get The number of producers.
|
String |
getProducerLimit()
Get The maximum number of producers.
|
Long |
getPulsarTopicType()
Get `0`: Non-persistent and non-partitioned
`1`: Non-persistent and partitioned
`2`: Persistent and non-partitioned
`3`: Persistent and partitioned
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getRemark()
Get Remarks (up to 128 characters).
|
PartitionsTopic[] |
getSubTopicSets()
Get Subpartitions in a partitioned topic.
|
String |
getTopicName()
Get Topic name.
|
Long |
getTopicType()
Get Topic type description:
0: General message;
1: Globally sequential message;
2: Partitionally sequential message;
3: Retry letter topic;
4: Dead letter topic;
5: Transaction message.
|
String |
getTotalSize()
Get The size of all stored messages in bytes.
|
String |
getUpdateTime()
Get Last modified.
|
void |
setAverageMsgSize(String AverageMsgSize)
Set Average size of the messages published in the last interval in bytes.
|
void |
setConsumerCount(String ConsumerCount)
Set The number of consumers.
|
void |
setConsumerLimit(String ConsumerLimit)
Set The maximum number of consumers.
|
void |
setCreateTime(String CreateTime)
Set Creation time.
|
void |
setEnvironmentId(String EnvironmentId)
Set Environment (namespace) name.
|
void |
setLastConfirmedEntry(String LastConfirmedEntry)
Set The total number of recorded messages.
|
void |
setLastLedgerCreatedTimestamp(String LastLedgerCreatedTimestamp)
Set Time when the last ledger was created.
|
void |
setMsgRateIn(String MsgRateIn)
Set The number of messages published by local and replicated publishers per second.
|
void |
setMsgRateOut(String MsgRateOut)
Set The total number of messages delivered by local and replicated consumers per second.
|
void |
setMsgThroughputIn(String MsgThroughputIn)
Set The size (in bytes) of messages published by local and replicated publishers per second.
|
void |
setMsgThroughputOut(String MsgThroughputOut)
Set The size (in bytes) of messages delivered by local and replicated consumers per second.
|
void |
setNumberOfEntries(String NumberOfEntries)
Set The total number of recorded messages.
|
void |
setPartitions(Long Partitions)
Set Partition count ≤ 0: there are no subpartitions in the topic.
|
void |
setProducerCount(String ProducerCount)
Set The number of producers.
|
void |
setProducerLimit(String ProducerLimit)
Set The maximum number of producers.
|
void |
setPulsarTopicType(Long PulsarTopicType)
Set `0`: Non-persistent and non-partitioned
`1`: Non-persistent and partitioned
`2`: Persistent and non-partitioned
`3`: Persistent and partitioned
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setRemark(String Remark)
Set Remarks (up to 128 characters).
|
void |
setSubTopicSets(PartitionsTopic[] SubTopicSets)
Set Subpartitions in a partitioned topic.
|
void |
setTopicName(String TopicName)
Set Topic name.
|
void |
setTopicType(Long TopicType)
Set Topic type description:
0: General message;
1: Globally sequential message;
2: Partitionally sequential message;
3: Retry letter topic;
4: Dead letter topic;
5: Transaction message.
|
void |
setTotalSize(String TotalSize)
Set The size of all stored messages in bytes.
|
void |
setUpdateTime(String UpdateTime)
Set Last modified.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public Topic()
public Topic(Topic source)
public String getAverageMsgSize()
public void setAverageMsgSize(String AverageMsgSize)
AverageMsgSize
- Average size of the messages published in the last interval in bytes.
Note: This field may return `null`, indicating that no valid values can be obtained.public String getConsumerCount()
public void setConsumerCount(String ConsumerCount)
ConsumerCount
- The number of consumers.
Note: This field may return null, indicating that no valid values can be obtained.public String getLastConfirmedEntry()
public void setLastConfirmedEntry(String LastConfirmedEntry)
LastConfirmedEntry
- The total number of recorded messages.
Note: This field may return null, indicating that no valid values can be obtained.public String getLastLedgerCreatedTimestamp()
public void setLastLedgerCreatedTimestamp(String LastLedgerCreatedTimestamp)
LastLedgerCreatedTimestamp
- Time when the last ledger was created.
Note: This field may return null, indicating that no valid values can be obtained.public String getMsgRateIn()
public void setMsgRateIn(String MsgRateIn)
MsgRateIn
- The number of messages published by local and replicated publishers per second.
Note: This field may return null, indicating that no valid values can be obtained.public String getMsgRateOut()
public void setMsgRateOut(String MsgRateOut)
MsgRateOut
- The total number of messages delivered by local and replicated consumers per second.
Note: This field may return null, indicating that no valid values can be obtained.public String getMsgThroughputIn()
public void setMsgThroughputIn(String MsgThroughputIn)
MsgThroughputIn
- The size (in bytes) of messages published by local and replicated publishers per second.
Note: This field may return null, indicating that no valid values can be obtained.public String getMsgThroughputOut()
public void setMsgThroughputOut(String MsgThroughputOut)
MsgThroughputOut
- The size (in bytes) of messages delivered by local and replicated consumers per second.
Note: This field may return null, indicating that no valid values can be obtained.public String getNumberOfEntries()
public void setNumberOfEntries(String NumberOfEntries)
NumberOfEntries
- The total number of recorded messages.
Note: This field may return null, indicating that no valid values can be obtained.public Long getPartitions()
public void setPartitions(Long Partitions)
Partitions
- Partition count ≤ 0: there are no subpartitions in the topic.
Note: This field may return null, indicating that no valid values can be obtained.public String getProducerCount()
public void setProducerCount(String ProducerCount)
ProducerCount
- The number of producers.
Note: This field may return null, indicating that no valid values can be obtained.public String getTotalSize()
public void setTotalSize(String TotalSize)
TotalSize
- The size of all stored messages in bytes.
Note: This field may return null, indicating that no valid values can be obtained.public PartitionsTopic[] getSubTopicSets()
public void setSubTopicSets(PartitionsTopic[] SubTopicSets)
SubTopicSets
- Subpartitions in a partitioned topic.
Note: This field may return null, indicating that no valid values can be obtained.public Long getTopicType()
public void setTopicType(Long TopicType)
TopicType
- Topic type description:
0: General message;
1: Globally sequential message;
2: Partitionally sequential message;
3: Retry letter topic;
4: Dead letter topic;
5: Transaction message.
Note: This field may return null, indicating that no valid values can be obtained.public String getEnvironmentId()
public void setEnvironmentId(String EnvironmentId)
EnvironmentId
- Environment (namespace) name.
Note: This field may return null, indicating that no valid values can be obtained.public String getTopicName()
public void setTopicName(String TopicName)
TopicName
- Topic name.
Note: This field may return null, indicating that no valid values can be obtained.public String getRemark()
public void setRemark(String Remark)
Remark
- Remarks (up to 128 characters).
Note: This field may return null, indicating that no valid values can be obtained.public String getCreateTime()
public void setCreateTime(String CreateTime)
CreateTime
- Creation time.
Note: This field may return null, indicating that no valid values can be obtained.public String getUpdateTime()
public void setUpdateTime(String UpdateTime)
UpdateTime
- Last modified.
Note: This field may return null, indicating that no valid values can be obtained.public String getProducerLimit()
public void setProducerLimit(String ProducerLimit)
ProducerLimit
- The maximum number of producers.
Note: This field may return null, indicating that no valid values can be obtained.public String getConsumerLimit()
public void setConsumerLimit(String ConsumerLimit)
ConsumerLimit
- The maximum number of consumers.
Note: This field may return null, indicating that no valid values can be obtained.public Long getPulsarTopicType()
public void setPulsarTopicType(Long PulsarTopicType)
PulsarTopicType
- `0`: Non-persistent and non-partitioned
`1`: Non-persistent and partitioned
`2`: Persistent and non-partitioned
`3`: Persistent and partitioned
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.