public class StatisServiceCounter extends Object implements IServiceCounter<Short>
| 构造器和说明 |
|---|
StatisServiceCounter() |
StatisServiceCounter(String key,
Short[] types) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(Short type,
long val) |
boolean |
add(Short type,
long val,
long actTime) |
boolean |
addCounter(Short type) |
boolean |
existType(Short type) |
long |
get(Short type) |
long |
getByTypes(Short... types) |
String |
getKey() |
double |
getQps(TimeUnit tounit,
Short... types) |
Long |
getTotal(Short... type) |
Short[] |
getTypes() |
boolean |
increment(Short type) |
boolean |
increment(Short type,
long actTime) |
void |
setKey(String key) |
void |
setQps(Double qps) |
void |
setTypes(Short[] types) |
public double getQps(TimeUnit tounit, Short... types)
getQps 在接口中 IServiceCounter<Short>public void setQps(Double qps)
public long get(Short type)
get 在接口中 IServiceCounter<Short>public boolean add(Short type, long val)
add 在接口中 IServiceCounter<Short>public boolean add(Short type, long val, long actTime)
add 在接口中 IServiceCounter<Short>public Long getTotal(Short... type)
getTotal 在接口中 IServiceCounter<Short>public boolean increment(Short type)
increment 在接口中 IServiceCounter<Short>public boolean increment(Short type, long actTime)
increment 在接口中 IServiceCounter<Short>public boolean addCounter(Short type)
addCounter 在接口中 IServiceCounter<Short>public long getByTypes(Short... types)
getByTypes 在接口中 IServiceCounter<Short>public boolean existType(Short type)
existType 在接口中 IServiceCounter<Short>public String getKey()
public void setKey(String key)
public Short[] getTypes()
public void setTypes(Short[] types)
Copyright © 2018–2021 The Apache Software Foundation. All rights reserved.