public class ClientResourceLimits
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ClientResourceLimits.Overload |
Modifier and Type | Field and Description |
---|---|
static NonBlockingRateLimiter |
GLOBAL_REQUEST_LIMITER |
Constructor and Description |
---|
ClientResourceLimits() |
Modifier and Type | Method and Description |
---|---|
static org.apache.cassandra.transport.ClientResourceLimits.Allocator |
getAllocatorForEndpoint(java.net.InetAddress endpoint) |
static long |
getCurrentGlobalUsage() |
static com.codahale.metrics.Snapshot |
getCurrentIpUsage() |
static long |
getEndpointLimit() |
static long |
getGlobalLimit() |
static int |
getNativeTransportMaxRequestsPerSecond() |
static com.codahale.metrics.Reservoir |
ipUsageReservoir()
This will recompute the ip usage histo on each query of the snapshot when requested instead of trying to keep
a histogram up to date with each request
|
static void |
setEndpointLimit(long newLimit) |
static void |
setGlobalLimit(long newLimit) |
static void |
setNativeTransportMaxRequestsPerSecond(int newPerSecond) |
public static final NonBlockingRateLimiter GLOBAL_REQUEST_LIMITER
public static org.apache.cassandra.transport.ClientResourceLimits.Allocator getAllocatorForEndpoint(java.net.InetAddress endpoint)
public static long getGlobalLimit()
public static void setGlobalLimit(long newLimit)
public static long getCurrentGlobalUsage()
public static long getEndpointLimit()
public static void setEndpointLimit(long newLimit)
public static com.codahale.metrics.Snapshot getCurrentIpUsage()
public static int getNativeTransportMaxRequestsPerSecond()
public static void setNativeTransportMaxRequestsPerSecond(int newPerSecond)
public static com.codahale.metrics.Reservoir ipUsageReservoir()
Copyright © 2009-2022 The Apache Software Foundation