public class PersistentOfflineTopicStats extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PersistentOfflineTopicStats.CursorDetails
Details about a cursor.
|
static class |
PersistentOfflineTopicStats.LedgerDetails
Details about a ledger.
|
| Modifier and Type | Field and Description |
|---|---|
String |
brokerName
Broker host where this stat was generated.
|
Map<String,PersistentOfflineTopicStats.CursorDetails> |
cursorDetails
Cursor ledger ids and backlog.
|
List<PersistentOfflineTopicStats.LedgerDetails> |
dataLedgerDetails
Data ledger ids.
|
long |
messageBacklog
Total backlog.
|
Date |
statGeneratedAt
Timestamp when stat was generated.
|
long |
storageSize
Space used to store the messages for the topic (bytes).
|
String |
topicName
Offline topic name.
|
long |
totalMessages
Total number of messages.
|
| Constructor and Description |
|---|
PersistentOfflineTopicStats(String topicName,
String brokerName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCursorDetails(String cursor,
long backlog,
long ledgerId) |
void |
addLedgerDetails(long entries,
long timestamp,
long size,
long ledgerId) |
void |
reset() |
public long storageSize
public long totalMessages
public long messageBacklog
public final String brokerName
public final String topicName
public List<PersistentOfflineTopicStats.LedgerDetails> dataLedgerDetails
public Map<String,PersistentOfflineTopicStats.CursorDetails> cursorDetails
public Date statGeneratedAt
public void reset()
public void addCursorDetails(String cursor, long backlog, long ledgerId)
public void addLedgerDetails(long entries,
long timestamp,
long size,
long ledgerId)
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.