public class BrokerUsage extends Object
BrokerUsage object encapsulates the resources that are only used by broker, for now, it's connections both to
outside JVM and to the local VM| Constructor and Description |
|---|
BrokerUsage() |
| Modifier and Type | Method and Description |
|---|---|
long |
getConnectionCount() |
long |
getReplicationConnectionCount() |
static BrokerUsage |
populateFrom(Map<String,Object> metrics) |
void |
setConnectionCount(long connectionCount) |
void |
setReplicationConnectionCount(long replicationConnectionCount) |
public long getConnectionCount()
public long getReplicationConnectionCount()
public void setConnectionCount(long connectionCount)
public void setReplicationConnectionCount(long replicationConnectionCount)
public static BrokerUsage populateFrom(Map<String,Object> metrics)
Copyright © 2017–2018 Apache Software Foundation. All rights reserved.