@FunctionalInterface
public static interface BaggageListener.BranchListener<B extends BaggageContext>
BaggageProvider.branch(BaggageContext)
so that the baggage instance(s) can be modified.Modifier and Type | Method and Description |
---|---|
B |
branch(B from,
java.util.function.Function<B,B> wrapped)
Invoked when
BaggageProvider.branch(BaggageContext) is called. |
B branch(B from, java.util.function.Function<B,B> wrapped)
BaggageProvider.branch(BaggageContext)
is called. wrapped
is the default
implementation of branch which should be called. This method can optionally perform additional logic before
or after invocation, or override its behavior completely.from
- a baggage context, possibly nullwrapped
- the default BaggageProvider.branch(BaggageContext)
functionfrom
, possibly null