Class AsyncOperationLogger
java.lang.Object
org.shoulder.log.operation.logger.impl.AsyncOperationLogger
- All Implemented Interfaces:
OperationLogger
异步操作日志记录器
仅仅把任务放入线程池
- Author:
- lym
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInterceptor(OperationLoggerInterceptor logInterceptor) 注册拦截器voidlog(Collection<? extends OperationLogDTO> opLogList) 记录多条操作日志voidlog(OperationLogDTO opLog) 记录一条操作日志voidlog(OperationLogDTO opLog, List<? extends Operable> operableList) 组装并记录多条操作日志voidsetExecutorService(ExecutorService executorService) setLogger(OperationLogger delegate) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.shoulder.log.operation.logger.OperationLogger
log
-
Constructor Details
-
AsyncOperationLogger
public AsyncOperationLogger()
-
-
Method Details
-
log
记录一条操作日志- Specified by:
login interfaceOperationLogger- Parameters:
opLog- 操作日志对象
-
log
记录多条操作日志- Specified by:
login interfaceOperationLogger- Parameters:
opLogList- 操作日志对象集合
-
log
Description copied from interface:OperationLogger组装并记录多条操作日志- Specified by:
login interfaceOperationLogger- Parameters:
opLog- 记录模板operableList- 被操作对象集合
-
addInterceptor
Description copied from interface:OperationLogger注册拦截器- Specified by:
addInterceptorin interfaceOperationLogger- Parameters:
logInterceptor- 拦截器
-
setLogger
-
getDelegate
-
getExecutorService
-
setExecutorService
-
preDestroy
@PreDestroy public void preDestroy()
-