Package in.hocg.boot.utils.utils
Class LogUtils
- java.lang.Object
-
- in.hocg.boot.utils.utils.LogUtils
-
public class LogUtils extends Object
- Author:
- hocgin
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLogUtils.LogStatus
-
Constructor Summary
Constructors Constructor Description LogUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TlogAsync(SupplierThrow<T> exec, SupplierThrow<Future<Serializable>> onReady, ThreeConsumerThrow<Serializable,LogUtils.LogStatus,Object> onComplete)异步记录日志<T> TlogSync(SupplierThrow<T> exec, SupplierThrow<Serializable> onReady, ThreeConsumerThrow<Serializable,LogUtils.LogStatus,Object> onComplete)同步记录日志<T> TlogSync(SupplierThrow<T> exec, ThreeConsumerThrow<Serializable,LogUtils.LogStatus,Object> onComplete)同步记录日志
-
-
-
Method Detail
-
logSync
public <T> T logSync(SupplierThrow<T> exec, ThreeConsumerThrow<Serializable,LogUtils.LogStatus,Object> onComplete)
同步记录日志- Type Parameters:
T-- Parameters:
exec- 执行操作onComplete- 完成日志状态补充- Returns:
- 执行结果
-
logSync
public <T> T logSync(SupplierThrow<T> exec, SupplierThrow<Serializable> onReady, ThreeConsumerThrow<Serializable,LogUtils.LogStatus,Object> onComplete)
同步记录日志- Type Parameters:
T-- Parameters:
exec- 执行操作onReady- 准备日志onComplete- 完成日志状态补充- Returns:
- 执行结果
-
logAsync
public <T> T logAsync(SupplierThrow<T> exec, SupplierThrow<Future<Serializable>> onReady, ThreeConsumerThrow<Serializable,LogUtils.LogStatus,Object> onComplete)
异步记录日志- Type Parameters:
T-- Parameters:
exec- 执行操作onReady- 准备日志onComplete- 完成日志状态补充- Returns:
- 执行结果
-
-