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 class
Return instance of an empty mapstatic final class
Propagated headers which can scan for allowed headers with any of the preconfigured prefixes. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear all the headersstatic PropagatedHeaders
Create new instance, with prefixes for allowed headers.static PropagatedHeaders
noop()
Creates a new Noop Propagated headers instancevoid
Scan 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
-