Class ClientResourceLimits

java.lang.Object
org.apache.cassandra.transport.ClientResourceLimits

public class ClientResourceLimits extends Object
  • Field Details

  • Constructor Details

    • ClientResourceLimits

      public ClientResourceLimits()
  • Method Details

    • getAllocatorForEndpoint

      public static org.apache.cassandra.transport.ClientResourceLimits.Allocator getAllocatorForEndpoint(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