@ParametersAreNonnullByDefault public interface ExecutionContextFactory<T extends ExecutionContext>
Modifier and Type | Method and Description |
---|---|
T |
start(String name,
CharSequence id,
ExecutionContext parent,
ExecutionContext.Relation relation,
long startTimeNanos,
long deadlineNanos)
Create a ExecutionContext.
|
T start(String name, @Nullable CharSequence id, @Nullable ExecutionContext parent, ExecutionContext.Relation relation, long startTimeNanos, long deadlineNanos)
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.Copyright © 2021 SPF4J. All rights reserved.