类 FastHttpClientStat
- java.lang.Object
-
- io.itit.itf.okhttp.FastHttpClientStat
-
public class FastHttpClientStat extends Object
- 作者:
- icecooly
-
-
字段概要
字段 修饰符和类型 字段 说明 protected static LinkedBlockingDeque<String>errorMsgsprotected static DatelastAccessTimeprotected static AtomicIntegerreqExceptionCountprotected static AtomicIntegerreqFailureCountprotected static AtomicIntegerreqTotalCountprotected static DatestartTime
-
构造器概要
构造器 构造器 说明 FastHttpClientStat()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static LinkedBlockingDeque<String>getErrorMsgs()static DategetLastAccessTime()static intgetReqExceptionCount()static intgetReqFailureCount()static intgetReqTotalCount()static DategetStartTime()protected static voidonReqFailure(String url, Exception e)protected static voidonReqSuccess()static voidstopStat()
-
-
-
字段详细资料
-
reqTotalCount
protected static AtomicInteger reqTotalCount
-
reqFailureCount
protected static AtomicInteger reqFailureCount
-
reqExceptionCount
protected static AtomicInteger reqExceptionCount
-
startTime
protected static Date startTime
-
lastAccessTime
protected static Date lastAccessTime
-
errorMsgs
protected static LinkedBlockingDeque<String> errorMsgs
-
-
方法详细资料
-
stopStat
public static void stopStat()
-
getReqTotalCount
public static int getReqTotalCount()
-
getReqFailureCount
public static int getReqFailureCount()
-
getReqExceptionCount
public static int getReqExceptionCount()
-
getStartTime
public static Date getStartTime()
-
getLastAccessTime
public static Date getLastAccessTime()
-
getErrorMsgs
public static LinkedBlockingDeque<String> getErrorMsgs()
-
onReqSuccess
protected static void onReqSuccess()
-
-