- java.lang.Object
-
- brave.internal.PropagationFields
-
- brave.internal.MapPropagationFields
-
public class MapPropagationFields extends PropagationFields
Copy-on-write keeps propagation changes in a child context from affecting its parent
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMapPropagationFields()protectedMapPropagationFields(MapPropagationFields parent)protectedMapPropagationFields(java.util.Map<java.lang.String,java.lang.String> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.Stringget(java.lang.String name)Returns the value of the field with the specified key or null if not availableinthashCode()voidput(java.lang.String name, java.lang.String value)Replaces the value of the field with the specified key, ignoring if not a permitted fieldprotected voidputAllIfAbsent(PropagationFields parent)java.util.Map<java.lang.String,java.lang.String>toMap()-
Methods inherited from class brave.internal.PropagationFields
get, put, toString
-
-
-
-
Constructor Detail
-
MapPropagationFields
protected MapPropagationFields()
-
MapPropagationFields
protected MapPropagationFields(java.util.Map<java.lang.String,java.lang.String> parent)
-
MapPropagationFields
protected MapPropagationFields(MapPropagationFields parent)
-
-
Method Detail
-
get
public java.lang.String get(java.lang.String name)
Description copied from class:PropagationFieldsReturns the value of the field with the specified key or null if not available- Specified by:
getin classPropagationFields
-
put
public final void put(java.lang.String name, java.lang.String value)Description copied from class:PropagationFieldsReplaces the value of the field with the specified key, ignoring if not a permitted field- Specified by:
putin classPropagationFields
-
putAllIfAbsent
protected final void putAllIfAbsent(PropagationFields parent)
-
toMap
public final java.util.Map<java.lang.String,java.lang.String> toMap()
- Specified by:
toMapin classPropagationFields
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-