Class ImmutableTraceFlags

  • All Implemented Interfaces:
    TraceFlags

    @Immutable
    final class ImmutableTraceFlags
    extends java.lang.Object
    implements TraceFlags
    • Constructor Detail

      • ImmutableTraceFlags

        private ImmutableTraceFlags​(byte byteRep)
    • Method Detail

      • fromHex

        static ImmutableTraceFlags fromHex​(java.lang.CharSequence src,
                                           int srcOffset)
        Description copied from interface: TraceFlags
        Returns the TraceFlags converted from the given lowercase hex (base16) representation.

        This may throw runtime exceptions if the input is invalid.

        Parameters:
        src - the buffer where the hex (base16) representation of the TraceFlags is.
        srcOffset - the offset int buffer.
        Returns:
        the TraceFlags converted from the given lowercase hex (base16) representation.
      • fromByte

        static ImmutableTraceFlags fromByte​(byte traceFlagsByte)
        Description copied from interface: TraceFlags
        Returns the TraceFlags converted from the given byte representation.
        Parameters:
        traceFlagsByte - the byte representation of the TraceFlags.
        Returns:
        the TraceFlags converted from the given byte representation.
      • isSampled

        public boolean isSampled()
        Description copied from interface: TraceFlags
        Returns true if the sampling bit is on for this TraceFlags, otherwise false.
        Specified by:
        isSampled in interface TraceFlags
        Returns:
        true if the sampling bit is on for this TraceFlags, otherwise * false.
      • asHex

        public java.lang.String asHex()
        Description copied from interface: TraceFlags
        Returns the lowercase hex (base16) representation of this TraceFlags.
        Specified by:
        asHex in interface TraceFlags
        Returns:
        the byte representation of the TraceFlags.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object