| 程序包 | 说明 |
|---|---|
| cn.weforward.common | |
| cn.weforward.common.sys | |
| cn.weforward.common.util |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
DestroyableExt
用于提供可执行结束时清理工作的接口
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
GcCleaner
使用SoftReference在GC时清除缓存
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
Shutdown.add(Destroyable destroyable)
增加
|
static boolean |
Shutdown.register(Destroyable destroyable)
注册Destroyable
|
boolean |
Shutdown.remove(Destroyable destroyable)
删除
|
static boolean |
Shutdown.unregister(Destroyable destroyable)
删除Destroyable注册
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
BackgroundExecutor
基于定时任务及线程池的后台任务执行器,用于管理进行后台操作的任务
|
static class |
Bytes.Pool
字节数组池化
|
class |
DelayRunner<E>
延时(最小间隔1秒)/异步地执行任务的辅助基类
|
class |
RingBuffer<T>
环型缓冲区(FIFO),也适合做缓存池
|
class |
StringBuilderPool
StringBuilder池化
|
class |
ThreadPool
简单线程池
|
Copyright © 2020. All rights reserved.