@FunctionalInterface
public static interface BaggageListener.JoinListener<B extends BaggageContext>
BaggageProvider.join(BaggageContext, BaggageContext)
so that baggage instance(s) can be
modified.Modifier and Type | Method and Description |
---|---|
B |
join(B left,
B right,
java.util.function.BiFunction<B,B,B> wrapped)
Invoked when
BaggageProvider.join(BaggageContext, BaggageContext) is called. |
B join(B left, B right, java.util.function.BiFunction<B,B,B> wrapped)
BaggageProvider.join(BaggageContext, BaggageContext)
is called. wrapped
is
the default implementation of join which should be called. This method can optionally perform additional
logic before or after invocation, or override its behavior completely.left
- a BaggageContext
instance, possibly nullright
- a BaggageContext
instance, possibly nullnext
- the default BaggageProvider.join(BaggageContext, BaggageContext)
functionleft
and right