Class Utils


  • public class Utils
    extends Object
    • Field Detail

      • DUMMY_VALUE

        protected static final Long DUMMY_VALUE
    • Constructor Detail

      • Utils

        public Utils()
    • Method Detail

      • getScopeAwarePropagator

        public static ContextMapPropagator getScopeAwarePropagator()
        Returns:
        The in-scope instance of ContextMapPropagator so that communication protocols can ask the ContextMapPropagator to handle the context propagation bytes on the wire.
      • getScopeAwareContextMap

        public static ContextMap getScopeAwareContextMap()
      • registerContextFactoryForPrefixNamed

        public static void registerContextFactoryForPrefixNamed​(String prefixName,
                                                                ContextViewFactory factory)
        ViewCapable objects are created by the context propagation framework when needed using the ContextViewFactory registered against the specified context name
        Parameters:
        prefixName - This is the name of the context that should be instantiated with the corresponding factory.
        factory - A ContextViewFactory.
      • isAsciiString

        public static boolean isAsciiString​(String s)
      • toString

        public static String toString​(byte[] bytes)