| Package | Description |
|---|---|
| tech.mlsql.common.utils.concurrent |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ListeningScheduledExecutorService
A
ScheduledExecutorService that returns ListenableFuture
instances from its ExecutorService methods. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractListeningExecutorService
Abstract
ListeningExecutorService implementation that creates
ListenableFutureTask instances for each Runnable and Callable submitted
to it. |
| Modifier and Type | Method and Description |
|---|---|
static ListeningExecutorService |
MoreExecutors.listeningDecorator(ExecutorService delegate)
Creates an
ExecutorService whose submit and invokeAll methods submit ListenableFutureTask instances to the
given delegate executor. |
static ListeningExecutorService |
MoreExecutors.sameThreadExecutor()
Creates an executor service that runs each task in the thread
that invokes
execute/submit, as in ThreadPoolExecutor.CallerRunsPolicy This
applies both to individually submitted tasks and to collections of tasks
submitted via invokeAll or invokeAny. |
Copyright © 2020. All rights reserved.