public interface ChangeSetContextRunner
Modifier and Type | Method and Description |
---|---|
void |
run(Consumer<ChangeSetContext> changeSetHandler)
Opens a
ChangeSetContext and runs the given handler within its scope. |
<T> T |
run(Function<ChangeSetContext,T> changeSetHandler)
Opens a
ChangeSetContext and runs the given handler within its scope. |
<T> T run(Function<ChangeSetContext,T> changeSetHandler)
ChangeSetContext
and runs the given handler within its scope.
The ChangeSetContext
marks a scope in which all opened transactions
etc. are committed cancelled together. Note that single transactions may fail
during commit but others might be successful.
The ChangeSetContext
will be propagated to all
EventContext
instances in the service call
hierarchy.
T
- The type of the responsechangeSetHandler
- The handler for processing the request within the contextvoid run(Consumer<ChangeSetContext> changeSetHandler)
ChangeSetContext
and runs the given handler within its scope.
The ChangeSetContext
marks a scope in which all opened transactions
etc. are committed cancelled together. Note that single transactions may fail
during commit but others might be successful.
The ChangeSetContext
will be propagated to all
EventContext
instances in the service call
hierarchy.
changeSetHandler
- The handler for processing the request within the contextCopyright © 2023. All rights reserved.