Class ClientResourceLimits


  • public class ClientResourceLimits
    extends java.lang.Object
    • Constructor Detail

      • ClientResourceLimits

        public ClientResourceLimits()
    • Method Detail

      • getAllocatorForEndpoint

        public static org.apache.cassandra.transport.ClientResourceLimits.Allocator getAllocatorForEndpoint​(java.net.InetAddress endpoint)
      • getGlobalLimit

        public static long getGlobalLimit()
      • setGlobalLimit

        public static void setGlobalLimit​(long newLimit)
      • getCurrentGlobalUsage

        public static long getCurrentGlobalUsage()
      • getEndpointLimit

        public static long getEndpointLimit()
      • setEndpointLimit

        public static void setEndpointLimit​(long newLimit)
      • getCurrentIpUsage

        public static com.codahale.metrics.Snapshot getCurrentIpUsage()
      • getNativeTransportMaxRequestsPerSecond

        public static int getNativeTransportMaxRequestsPerSecond()
      • setNativeTransportMaxRequestsPerSecond

        public static void setNativeTransportMaxRequestsPerSecond​(int newPerSecond)
      • ipUsageReservoir

        public 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