-
public interface TraceScope.ContinuationUsed to pass async context between workers.
-
-
Method Summary
Modifier and Type Method Description abstract TraceScopeactivate()Activate the continuation. abstract voidclose()Cancel the continuation. abstract voidclose(boolean closeContinuationScope)Close the continuation. -
-
Method Detail
-
activate
abstract TraceScope activate()
Activate the continuation.
Should be called on the child thread.
-
close
abstract void close()
Cancel the continuation. This also closes parent scope.
FIXME: the fact that this is closing parent scope is confusing, we should review this innew API.
-
close
abstract void close(boolean closeContinuationScope)
Close the continuation.
- Parameters:
closeContinuationScope- true iff parent scope should also be closed
-
-
-
-