Package | Description |
---|---|
org.spf4j.base | |
org.spf4j.stackmonitor |
Modifier and Type | Interface and Description |
---|---|
interface |
ExecutionContextFactory<T extends ExecutionContext> |
Modifier and Type | Class and Description |
---|---|
class |
BasicExecutionContext
The simplest execution context possible.
|
Modifier and Type | Method and Description |
---|---|
static ExecutionContext |
ExecutionContexts.createDetached(String name,
ExecutionContext parent,
long startTimeNanos,
long deadlineNanos) |
static ExecutionContext |
ExecutionContexts.current() |
ExecutionContext |
BasicExecutionContext.getParent() |
ExecutionContext |
ExecutionContext.getParent() |
static ExecutionContext |
ExecutionContexts.start(ExecutionContext parent) |
static ExecutionContext |
ExecutionContexts.start(ExecutionContext parent,
long startTimeNanos,
long deadlineNanos) |
static ExecutionContext |
ExecutionContexts.start(ExecutionContext parent,
long timeout,
TimeUnit tu) |
static ExecutionContext |
ExecutionContexts.start(long startTimeNanos,
long deadlineNanos)
start a execution context.
|
static ExecutionContext |
ExecutionContexts.start(long timeout,
TimeUnit tu)
start a execution context.
|
static ExecutionContext |
ExecutionContexts.start(String opname) |
static ExecutionContext |
ExecutionContexts.start(String name,
ExecutionContext parent) |
static ExecutionContext |
ExecutionContexts.start(String name,
ExecutionContext parent,
long deadlineNanos) |
static ExecutionContext |
ExecutionContexts.start(String name,
ExecutionContext parent,
long startTimeNanos,
long deadlineNanos) |
static ExecutionContext |
ExecutionContexts.start(String name,
ExecutionContext parent,
long timeout,
TimeUnit tu) |
static ExecutionContext |
ExecutionContexts.start(String name,
long deadlineNanos) |
static ExecutionContext |
ExecutionContexts.start(String name,
long startTimeNanos,
long deadlineNanos) |
static ExecutionContext |
ExecutionContexts.start(String opname,
long timeout,
TimeUnit tu) |
Modifier and Type | Method and Description |
---|---|
static ExecutionContextFactory<ExecutionContext> |
ExecutionContexts.getContextFactory() |
Modifier and Type | Method and Description |
---|---|
static long |
ExecutionContexts.computeDeadline(ExecutionContext current,
TimeUnit unit,
long timeout) |
static long |
ExecutionContexts.computeDeadline(long startTimeNanos,
ExecutionContext current,
TimeUnit unit,
long timeout) |
static TimeoutDeadline |
ExecutionContexts.computeTimeoutDeadline(ExecutionContext current,
TimeUnit unit,
long timeout)
Compute the actual timeout taking in consideration the context deadline.
|
static ExecutionContext |
ExecutionContexts.createDetached(String name,
ExecutionContext parent,
long startTimeNanos,
long deadlineNanos) |
static <T> Callable<T> |
ExecutionContexts.deadlinedPropagatingCallable(Callable<T> callable,
ExecutionContext ctx,
long deadlineNanos) |
static <T> Collection<? extends Callable<T>> |
ExecutionContexts.deadlinedPropagatingCallables(Collection<? extends Callable<T>> tasks,
ExecutionContext ctx,
long deadlineNanos) |
static <T> Callable<T> |
ExecutionContexts.propagatingCallable(Callable<T> callable,
ExecutionContext ctx) |
static <T> Collection<? extends Callable<T>> |
ExecutionContexts.propagatingCallables(Collection<? extends Callable<T>> tasks,
ExecutionContext ctx) |
static Runnable |
ExecutionContexts.propagatingRunnable(Runnable runnable,
ExecutionContext ctx) |
static ExecutionContext |
ExecutionContexts.start(ExecutionContext parent) |
static ExecutionContext |
ExecutionContexts.start(ExecutionContext parent,
long startTimeNanos,
long deadlineNanos) |
static ExecutionContext |
ExecutionContexts.start(ExecutionContext parent,
long timeout,
TimeUnit tu) |
static ExecutionContext |
ExecutionContexts.start(String name,
ExecutionContext parent) |
static ExecutionContext |
ExecutionContexts.start(String name,
ExecutionContext parent,
long deadlineNanos) |
static ExecutionContext |
ExecutionContexts.start(String name,
ExecutionContext parent,
long startTimeNanos,
long deadlineNanos) |
T |
ExecutionContextFactory.start(String name,
ExecutionContext parent,
long startTimeNanos,
long deadlineNanos,
Runnable onClose)
Create a ExecutionContext.
|
static ExecutionContext |
ExecutionContexts.start(String name,
ExecutionContext parent,
long timeout,
TimeUnit tu) |
default T |
ExecutionContextFactory.startThreadRoot(String name,
ExecutionContext parent,
long startTimeNanos,
long deadlineNanos,
Runnable onClose) |
Constructor and Description |
---|
BasicExecutionContext(String name,
ExecutionContext parent,
long startTimeNanos,
long deadlineNanos,
Runnable onClose) |
Modifier and Type | Method and Description |
---|---|
ExecutionContext |
ProfiledExecutionContextFactory.start(String name,
ExecutionContext parent,
long startTimeNanos,
long deadlineNanos,
Runnable onClose) |
ExecutionContext |
ProfiledExecutionContextFactory.startThreadRoot(String name,
ExecutionContext parent,
long startTimeNanos,
long deadlineNanos,
Runnable onClose) |
Modifier and Type | Method and Description |
---|---|
Iterable<Map.Entry<Thread,ExecutionContext>> |
ProfiledExecutionContextFactory.getCurrentThreadContexts() |
Modifier and Type | Method and Description |
---|---|
ExecutionContext |
ProfiledExecutionContextFactory.start(String name,
ExecutionContext parent,
long startTimeNanos,
long deadlineNanos,
Runnable onClose) |
ExecutionContext |
ProfiledExecutionContextFactory.startThreadRoot(String name,
ExecutionContext parent,
long startTimeNanos,
long deadlineNanos,
Runnable onClose) |
Constructor and Description |
---|
ProfiledExecutionContextFactory(ExecutionContextFactory<ExecutionContext> wrapped) |
TracingExecutionContextStackCollector(int maxNrThreads,
Supplier<Iterable<Map.Entry<Thread,ExecutionContext>>> execCtxSupplier) |
TracingExecutionContextStackCollector(Supplier<Iterable<Map.Entry<Thread,ExecutionContext>>> execCtxSupplier) |
Copyright © 2018 SPF4J. All rights reserved.