Executor, ExecutorServicenl.talsmasoftware.context.delegation.CallMappingExecutorServicepublic abstract class CallMappingExecutorService
extends nl.talsmasoftware.context.delegation.CallMappingExecutorService
Runnable or Callable objects) using an existing ExecutorService while
providing a custom mapping for all tasks before they get scheduled.CallMappingExecutorService| Modifier | Constructor | Description |
|---|---|---|
protected |
CallMappingExecutorService(ExecutorService delegate) |
Deprecated.
Constructor to create a new wrapper around the specified
service delegate. |
| Modifier and Type | Method | Description |
|---|---|---|
protected Runnable |
map(Runnable runnable) |
Deprecated.
This method was replaced by
CallMappingExecutorService.wrap(Runnable). |
protected <T> Collection<? extends Callable<T>> |
map(Collection<? extends Callable<T>> tasks) |
Deprecated.
This method was replaced by
DelegatingExecutorService.wrapTasks(Collection) |
map, wrap, wrapawaitTermination, equals, execute, hashCode, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit, toString, wrap, wrapFutures, wrapTasksprotected CallMappingExecutorService(ExecutorService delegate)
service delegate.delegate - The delegate executor service that does the heavy lifting of executing all tasks once they are mapped.protected Runnable map(Runnable runnable)
CallMappingExecutorService.wrap(Runnable).Runnable objects before scheduling: wrap it into a Callable object,
map the callable and return an unwrapped Runnable implementation that simply runs
by calling the mapped Callable object.runnable - The runnable object to be mapped.CallMappingExecutorService.wrap(Runnable)protected <T> Collection<? extends Callable<T>> map(Collection<? extends Callable<T>> tasks)
DelegatingExecutorService.wrapTasks(Collection)Collection of Callable objects:
Create a new collection and add each individually mapped object into it.T - The common result type for the collection of tasks.tasks - The tasks to be mapped.DelegatingExecutorService.wrapTasks(Collection)Copyright © 2016–2018 Talsma ICT. All rights reserved.