Enum Entry.ContextType

  • All Implemented Interfaces:
    Serializable, Comparable<Entry.ContextType>
    Enclosing class:
    Entry

    public static enum Entry.ContextType
    extends Enum<Entry.ContextType>
    Identifies the type of a work context OPAQUE is a special type that identifies a context that came over the wire that could not be instantiated. Therefore it is opaque to the context propagation feature. However, opaque elements will be propagated even if this process cannot make sense of them since they may end up in a process that can understand them.
    • Method Detail

      • values

        public static Entry.ContextType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Entry.ContextType c : Entry.ContextType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Entry.ContextType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • fromOrdinal

        public static Entry.ContextType fromOrdinal​(int ordinal)
        Get the ContextType corresponding to the specified ordinal value. Mostly used by the WireAdapters
        Parameters:
        ordinal -
        Returns:
      • fromNumberClass

        public static <T extends NumberEntry.ContextType fromNumberClass​(Class<T> clz)
        Utility method designed to quickly determine the context type corresponding to a given class, clz.
        Parameters:
        clz -
        Returns: