| 接口 | 说明 |
|---|---|
| TaskDispatcher<ID,T> |
Task dispatcher takes task from clients, and delegates their execution to a configurable number of workers.
|
| TaskProcessor<T> |
An interface to be implemented by clients for task execution.
|
| 类 | 说明 |
|---|---|
| AcceptorExecutor<ID,T> |
An active object with an internal thread accepting tasks from clients, and dispatching them to
workers in a pull based manner.
|
| TaskDispatchers |
See
TaskDispatcher for an overview. |
| TaskExecutors<ID,T> |
TaskExecutors instance holds a number of worker threads that cooperate with AcceptorExecutor. |
| TaskHolder<ID,T> | |
| TrafficShaper |
TrafficShaper provides admission control policy prior to dispatching tasks to workers. |
| 枚举 | 说明 |
|---|---|
| TaskProcessor.ProcessingResult |
A processed task/task list ends up in one of the following states:
Success processing finished successfully
TransientError processing failed, but shall be retried later
PermanentError processing failed, and is non recoverable
|
Copyright © 2019 The Ant Financial. All rights reserved.