Interface PropagatedHeaders
- All Known Implementing Classes:
- PropagatedHeaders.NoopPropagatedHeaders,- PropagatedHeaders.PrefixedPropagatedHeaders
public interface PropagatedHeaders
Headers propagated between Participant and Coordinator.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic final classNoop headers, always returns same instance of empty map.static final classPropagated headers which can scan for allowed headers with any of the preconfigured prefixes.
- 
Method SummaryModifier and TypeMethodDescriptionvoidclear()Clear all headers.static PropagatedHeadersCreate new instance, with prefixes for allowed headers.static PropagatedHeadersnoop()Create new noop instance, always returns same instance of empty map.voidScan map of headers for any headers with allowed prefix.toMap()Get all headers as a map.
- 
Method Details- 
toMapGet all headers as a map.- Returns:
- map of headers
 
- 
scanScan map of headers for any headers with allowed prefix. Any existing headers with same key is replaced.- Parameters:
- headers- map to be scanned
 
- 
clearvoid clear()Clear all headers.
- 
createCreate new instance, with prefixes for allowed headers.- Parameters:
- prefixes- list of the allowed header prefixes
- Returns:
- new instance, ready to scan for allowed headers
 
- 
noopCreate new noop instance, always returns same instance of empty map.- Returns:
- noop instance
 
 
-