Interface PropagatedHeaders
- All Known Implementing Classes:
PropagatedHeaders.NoopPropagatedHeaders,PropagatedHeaders.PrefixedPropagatedHeaders
public interface PropagatedHeaders
Headers propagated between Participant and Coordinator.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classReturn instance of an empty mapstatic final classPropagated headers which can scan for allowed headers with any of the preconfigured prefixes. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear all the headersstatic PropagatedHeadersCreate new instance, with prefixes for allowed headers.static PropagatedHeadersnoop()Creates a new Noop Propagated headers instancevoidScan map of headers for any headers with allowed prefix.toMap()Converts all the headers to a map
-
Method Details
-
toMap
Converts all the headers to a map- Returns:
- Headers map
-
scan
Scan map of headers for any headers with allowed prefix. Any existing headers with same key is replaced.- Parameters:
headers- map to be scanned
-
clear
void clear()Clear all the headers -
create
Create new instance, with prefixes for allowed headers.- Parameters:
prefixes- list of the allowed header prefixes- Returns:
- new instance, ready to scan for allowed headers
-
noop
Creates a new Noop Propagated headers instance- Returns:
- Always returns an instance of an empty map
-