Enum Class的使用
com.alibaba.csp.sentinel.cluster.flow.statistic.data.ClusterFlowEvent
使用ClusterFlowEvent的程序包
程序包
说明
-
com.alibaba.csp.sentinel.cluster.flow.statistic.data中ClusterFlowEvent的使用
修饰符和类型方法说明static ClusterFlowEventReturns the enum constant of this class with the specified name.static ClusterFlowEvent[]ClusterFlowEvent.values()Returns an array containing the constants of this enum class, in the order they are declared.修饰符和类型方法说明ClusterMetricBucket.add(ClusterFlowEvent event, long count) longClusterMetricBucket.get(ClusterFlowEvent event) -
com.alibaba.csp.sentinel.cluster.flow.statistic.metric中ClusterFlowEvent的使用
修饰符和类型方法说明voidClusterMetric.add(ClusterFlowEvent event, long count) doubleClusterMetric.getAvg(ClusterFlowEvent event) Get average count for provided event per second.longClusterMetric.getCurrentCount(ClusterFlowEvent event) longClusterMetricLeapArray.getFirstCountOfWindow(ClusterFlowEvent event) longClusterMetricLeapArray.getOccupiedCount(ClusterFlowEvent event) longClusterMetric.getSum(ClusterFlowEvent event) Get total sum for provided event inintervalInSec.intClusterMetric.tryOccupyNext(ClusterFlowEvent event, int acquireCount, double threshold) Try to pre-occupy upcoming buckets.