public class CircuitBreakerStats extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
CircuitBreakerStats(String name,
long limit,
long estimated,
double overhead,
long trippedCount) |
| Modifier and Type | Method and Description |
|---|---|
long |
getEstimated() |
long |
getLimit() |
String |
getName() |
double |
getOverhead() |
long |
getTrippedCount() |
void |
readFrom(StreamInput in) |
static CircuitBreakerStats |
readOptionalCircuitBreakerStats(StreamInput in) |
String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public CircuitBreakerStats(String name, long limit, long estimated, double overhead, long trippedCount)
public String getName()
public long getLimit()
public long getEstimated()
public long getTrippedCount()
public double getOverhead()
public static CircuitBreakerStats readOptionalCircuitBreakerStats(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2017. All rights reserved.