| 程序包 | 说明 |
|---|---|
| cn.gongler.util |
工具类
ococo-util8.jar, for Java8
2018.04.25 新增Util.parseUnsignedLong, toUnsignString()
2017.10.27 Util.LineComparator() 排序从前后缀方式替换成分段式排序。
|
| cn.gongler.util.concurrent |
| 限定符和类型 | 方法和说明 |
|---|---|
Collection<ITask> |
QueueConsumer.getQueue()
提供原始队列,方便可以直接使用更多的方法。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
QueueConsumer.accept(ITask task) |
MinuteTimer |
MinuteTimer.add(ITask task) |
static AutoCloseable |
GonglerUtil.AutoCloseable(ITask closeTask)
可以给关闭方法不叫close()的类增加try自动关闭的能力。
|
static void |
GonglerUtil.ExecuteWithCatchAny(ITask task) |
static void |
GonglerUtil.ExecuteWithThrowAny(ITask task) |
static void |
GonglerUtil.Repeat(int times,
ITask task) |
static Runnable |
GonglerUtil.RunnableWithCatchAny(ITask task) |
static Runnable |
GonglerUtil.RunnableWithThrowAny(ITask task) |
static Thread |
GonglerUtil.StartDaemonThread(String threadName,
ITask task) |
static TimerTask |
GonglerUtil.TimerTask(ITask task) |
static void |
GonglerUtil.WithTimeout2Beta(ITask task,
java.time.Duration timeout)
添加超时终止的功能
|
static void |
GonglerUtil.WithTimeout2Beta(ITask task,
java.time.Duration timeout,
java.time.Duration expiredTime)
增加重试次数
|
| 限定符和类型 | 方法和说明 |
|---|---|
static QueueConsumer |
QueueConsumer.of(String threadName,
BlockingQueue<ITask> queue)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
ITask |
ConcurrentBusExecutor.TaskWrapper.task() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ConcurrentBusExecutor.accept(Long busKey,
ITask task) |
Copyright © 2022. All rights reserved.