| 程序包 | 说明 |
|---|---|
| com.firefly.utils.concurrent | |
| com.firefly.utils.io |
| 限定符和类型 | 接口和说明 |
|---|---|
static interface |
Callback.NonBlocking
Callback interface that declares itself as non-blocking
|
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Callback.Completable
A CompletableFuture that is also a Callback.
|
static class |
Callback.Nested |
class |
CompletableCallback
A callback to be used by driver code that needs to know whether the callback
has been succeeded or failed (that is, completed) just after the asynchronous
operation or not, typically because further processing depends on the
callback being completed.
|
class |
CountingCallback
A callback wrapper that succeeds the wrapped callback when the count is
reached, or on first failure.
|
class |
FutureCallback |
class |
IteratingCallback
This specialized callback implements a pattern that allows a large job to be
broken into smaller tasks using iteration rather than recursion.
|
class |
IteratingNestedCallback
Iterating Nested Callback.
|
class |
SharedBlockingCallback.Blocker
A Closeable Callback.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static Callback |
Callback.NOOP
Instance of Adapter that can be used when the callback methods need an
empty implementation without incurring in the cost of allocating a new
Adapter object.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Callback |
Callback.from(CompletableFuture<?> completable)
Creates a non-blocking callback from the given incomplete
CompletableFuture.
|
static Callback |
Callback.from(CompletableFuture<?> completable,
boolean blocking)
Creates a callback from the given incomplete CompletableFuture, with the
given
blocking characteristic. |
| 构造器和说明 |
|---|
CountingCallback(Callback callback,
int count) |
IteratingNestedCallback(Callback callback) |
Nested(Callback callback) |
| 限定符和类型 | 方法和说明 |
|---|---|
static long |
FileUtils.transferTo(File file,
Callback callback,
BufferReaderHandler handler) |
static long |
FileUtils.transferTo(FileChannel fileChannel,
long len,
Callback callback,
BufferReaderHandler handler) |
static long |
FileUtils.transferTo(FileChannel fileChannel,
long pos,
long len,
Callback callback,
BufferReaderHandler handler) |
static long |
FileUtils.transferTo(File file,
long pos,
long len,
Callback callback,
BufferReaderHandler handler) |
Copyright © 2016. All rights reserved.