| 类 | 说明 |
|---|---|
| AddressUtils | |
| BooleanMutex |
实现一个互斥实现,基于Cocurrent中的AQS实现了自己的sync
应用场景:系统初始化/授权控制,没权限时阻塞等待。 |
| CanalToStringStyle |
Otter项目内部使用的ToStringStyle
默认Style输出格式:
Person[name=John Doe,age=33,smoker=false ,time=2010-04-01 00:00:00]
|
| CommonUtils |
通用工具类
|
| ExecutorTemplate |
多线程执行器模板代码,otter中好多地方都写多线程,比较多的都是重复的逻辑代码,抽象一下做个模板把
示例代码:
ExecutorTemplate template = new ExecutorTemplate(executor);
...
|
| FileUtils | |
| JsonUtils |
字节处理相关工具类
|
| JsonUtils.InetAddressWriter | |
| MQUtil | |
| NamedThreadFactory | |
| PropertiesUtils | |
| UriUtils |
Copyright © 2023. All rights reserved.