- java.lang.Object
-
- brave.internal.PropagationFields
-
- brave.internal.PredefinedPropagationFields
-
public class PredefinedPropagationFields extends PropagationFields
Copy-on-write keeps propagation changes in a child context from affecting its parent
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPredefinedPropagationFields(PredefinedPropagationFields parent, java.lang.String... fieldNames)protectedPredefinedPropagationFields(java.lang.String... fieldNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.Stringget(int index)java.lang.Stringget(java.lang.String name)Returns the value of the field with the specified key or null if not availableinthashCode()voidput(int index, java.lang.String value)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
-
PredefinedPropagationFields
protected PredefinedPropagationFields(java.lang.String... fieldNames)
-
PredefinedPropagationFields
protected PredefinedPropagationFields(PredefinedPropagationFields parent, java.lang.String... fieldNames)
-
-
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
-
get
public java.lang.String get(int index)
-
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
-
put
public final void put(int index, java.lang.String value)
-
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
-
-