Enum RecordSerializer.Events

    • Enum Constant Detail

      • SERIALIZE_PROTOBUF_RECORD

        public static final RecordSerializer.Events SERIALIZE_PROTOBUF_RECORD
        The amount of time spent serializing a Protobuf record to bytes.
      • DESERIALIZE_PROTOBUF_RECORD

        public static final RecordSerializer.Events DESERIALIZE_PROTOBUF_RECORD
        The amount of time spent deserializing a Protobuf record from bytes.
      • COMPRESS_SERIALIZED_RECORD

        public static final RecordSerializer.Events COMPRESS_SERIALIZED_RECORD
        The amount of time spent compressing serialized bytes.
      • DECOMPRESS_SERIALIZED_RECORD

        public static final RecordSerializer.Events DECOMPRESS_SERIALIZED_RECORD
        The amount of time spent decompressing serialized bytes.
      • ENCRYPT_SERIALIZED_RECORD

        public static final RecordSerializer.Events ENCRYPT_SERIALIZED_RECORD
        The amount of time spent encrypting serialized bytes.
      • DECRYPT_SERIALIZED_RECORD

        public static final RecordSerializer.Events DECRYPT_SERIALIZED_RECORD
        The amount of time spent decrypting serialized bytes.
    • Method Detail

      • values

        public static RecordSerializer.Events[] 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 (RecordSerializer.Events c : RecordSerializer.Events.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RecordSerializer.Events 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
      • title

        public String title()
        Description copied from interface: StoreTimer.Event
        Get the title of this event for user displays.
        Specified by:
        title in interface StoreTimer.Event
        Returns:
        the user-visible title
      • logKey

        @Nonnull
        public String logKey()
        Description copied from interface: StoreTimer.Event
        Get the key of this event for logging. This should be used with KeyValueLogMessages and other key-value based logging systems to log the values from instrumented events. These keys are not expected to change frequently. They may, however, change outside of any minor version change. Their values, therefore, should not be relied upon, other than for the logging purposes.
        Specified by:
        logKey in interface StoreTimer.Event
        Returns:
        the key to use for logging