public final class TaskMaster extends Object
TaskMaster allows a Runnable task to be submitted for execution and returns a Future representing that task. The Future's get method will return the given result upon successful completion.
As Web applications require a Future implementation that can be serializable, the TaskMaster has a custom interface TaskFuture that implements both Future and Serializable. It does not make sense for a Future to be Serializable as it is running on a specific thread on a particular server. To allow a Web Application to keep a reference to the Future, the default implementation of TaskFuture (ie TaskFutureWrapper) wraps the future by putting the Future on a cache and holding onto the cache key that is serializable.
| Modifier and Type | Method and Description |
|---|---|
static TaskMasterProvider |
getProvider() |
public static TaskMasterProvider getProvider()
Copyright © 2019. All rights reserved.