public enum SlowQueryLogger extends java.lang.Enum<SlowQueryLogger>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
record(java.util.List<LogSlowQuery> logSlowQueryList)
记录多个查询日志
|
void |
record(LogSlowQuery logSlowQuery)
记录单个查询日志
|
static SlowQueryLogger |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SlowQueryLogger[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SlowQueryLogger INSTANCE
public static SlowQueryLogger[] values()
for (SlowQueryLogger c : SlowQueryLogger.values()) System.out.println(c);
public static SlowQueryLogger valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic void record(LogSlowQuery logSlowQuery)
logQuery - 查询日志信息public void record(java.util.List<LogSlowQuery> logSlowQueryList)
logQueryList - 查询日志信息集合