Skip to content

Commit

Permalink
Added toString() override in PartitionThroughputInfo (linkedin#858)
Browse files Browse the repository at this point in the history
  • Loading branch information
jzakaryan authored and Vaibhav Maheshwari committed Mar 1, 2022
1 parent 9e7b137 commit 45dd802
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,13 @@ public int getMessagesInRate() {
public String getPartitionName() {
return _partitionName;
}

/**
* {@inheritDoc}
*/
@Override
public String toString() {
return String.format("[PartitionName: %s, BytesInKBRate: %s, MessagesInRate: %s]",
_partitionName, _bytesInKBRate, _messagesInRate);
}
}

0 comments on commit 45dd802

Please sign in to comment.