Interface Utils.ContextMapAdditionalAccessors
-
- Enclosing class:
- Utils
public static interface Utils.ContextMapAdditionalAccessors
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
putAscii(String name, String context, EnumSet<PropagationMode> propagationModes)
Store the specified work context under the specified name into the in-scope ContextMap.<T> T
putNotAscii(String key, String value, EnumSet<PropagationMode> propagationModes)
<T> T
putSerializable(String key, Serializable value, EnumSet<PropagationMode> propagationModes)
-
-
-
Method Detail
-
putAscii
<T> T putAscii(String name, String context, EnumSet<PropagationMode> propagationModes) throws InsufficientCredentialException
Store the specified work context under the specified name into the in-scope ContextMap.- Parameters:
name
- The name to associate to the specified work contextcontext
- an ascii String work context.propagationModes
- A set of propagation modes that control over which protocol this work context will be propagated.- Returns:
- The work context being replaced.
- Throws:
InsufficientCredentialException
- If the user has insufficient privileges to access that work context.
-
putNotAscii
<T> T putNotAscii(String key, String value, EnumSet<PropagationMode> propagationModes) throws InsufficientCredentialException
- Throws:
InsufficientCredentialException
-
putSerializable
<T> T putSerializable(String key, Serializable value, EnumSet<PropagationMode> propagationModes) throws InsufficientCredentialException
- Throws:
InsufficientCredentialException
-
-