程序包 | 说明 |
---|---|
com.nineya.cspeed | |
com.nineya.cspeed.recorder |
限定符和类型 | 字段和说明 |
---|---|
private static Map<String,AbstractRecorder> |
CSpeed.recorders |
限定符和类型 | 方法和说明 |
---|---|
static <T extends AbstractRecorder> |
CSpeed.addRecorder(T recorder)
往列表中添加一个记录器
|
限定符和类型 | 方法和说明 |
---|---|
static AbstractRecorder |
CSpeed.getRecorder(AbstractRecorder recorder)
如果指定名称的记录器不存在,则使用指定的记录器创建。
|
static AbstractRecorder |
CSpeed.getRecorder(Class clazz)
传入Class,通过class取得类名作为记录器名称,调用getRecorder(String)进行getRecorder操作
|
static AbstractRecorder |
CSpeed.getRecorder(String name)
传入记录器名称,如果记录器已经存在,则直接get
|
限定符和类型 | 方法和说明 |
---|---|
static AbstractRecorder |
CSpeed.getRecorder(AbstractRecorder recorder)
如果指定名称的记录器不存在,则使用指定的记录器创建。
|
限定符和类型 | 类和说明 |
---|---|
class |
MultiThreadRecorder |
class |
SimpleRecorder |
Copyright © 2020. All rights reserved.