@ParametersAreNonnullByDefault public interface ExecutionContextFactory<T extends ExecutionContext>
Modifier and Type | Method and Description |
---|---|
T |
start(String name,
ExecutionContext parent,
long startTimeNanos,
long deadlineNanos,
Runnable onClose)
Create a ExecutionContext.
|
default T |
startThreadRoot(String name,
ExecutionContext parent,
long startTimeNanos,
long deadlineNanos,
Runnable onClose) |
T start(String name, @Nullable ExecutionContext parent, long startTimeNanos, long deadlineNanos, Runnable onClose)
name
- name of the context.parent
- parent execution context. (null if this is root)deadlineNanos
- the deadline of the context.onClose
- a callback that needs to be executed when context is closed.default T startThreadRoot(String name, @Nullable ExecutionContext parent, long startTimeNanos, long deadlineNanos, Runnable onClose)
Copyright © 2018 SPF4J. All rights reserved.