public class ChannelCounter extends MonitoredCounterGroup implements ChannelCounterMBean
MonitoredCounterGroup.Type
Constructor and Description |
---|
ChannelCounter(String name) |
ChannelCounter(String name,
String[] attributes) |
Modifier and Type | Method and Description |
---|---|
long |
addToEventPutSuccessCount(long delta) |
long |
addToEventTakeSuccessCount(long delta) |
long |
getChannelCapacity() |
double |
getChannelFillPercentage() |
long |
getChannelSize() |
long |
getEventPutAttemptCount() |
long |
getEventPutSuccessCount() |
long |
getEventTakeAttemptCount() |
long |
getEventTakeSuccessCount() |
long |
incrementEventPutAttemptCount() |
long |
incrementEventTakeAttemptCount() |
void |
setChannelCapacity(long capacity) |
void |
setChannelSize(long newSize) |
addAndGet, get, getStartTime, getStopTime, getType, increment, set, start, stop, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getStartTime, getStopTime, getType
public ChannelCounter(String name)
public long getChannelSize()
getChannelSize
in interface ChannelCounterMBean
public void setChannelSize(long newSize)
public long getEventPutAttemptCount()
getEventPutAttemptCount
in interface ChannelCounterMBean
public long incrementEventPutAttemptCount()
public long getEventTakeAttemptCount()
getEventTakeAttemptCount
in interface ChannelCounterMBean
public long incrementEventTakeAttemptCount()
public long getEventPutSuccessCount()
getEventPutSuccessCount
in interface ChannelCounterMBean
public long addToEventPutSuccessCount(long delta)
public long getEventTakeSuccessCount()
getEventTakeSuccessCount
in interface ChannelCounterMBean
public long addToEventTakeSuccessCount(long delta)
public void setChannelCapacity(long capacity)
public long getChannelCapacity()
getChannelCapacity
in interface ChannelCounterMBean
public double getChannelFillPercentage()
getChannelFillPercentage
in interface ChannelCounterMBean
Copyright © 2009–2019 Apache Software Foundation. All rights reserved.