Interface IValueDeserializer

All Known Implementing Classes:
BinaryValueDeserializer, CassandraValueDeserializer, JsonArrayValueDeserializer, TextValueDeserializer

public interface IValueDeserializer
Interface for value deserializers for use by monitoring records.
Since:
1.13
Author:
Holger Knoche, Reiner Jung - added enumeration support
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Retrieves a boolean value from the underlying data source.
    byte
    Retrieves a byte value from the underlying data source.
    char
    Retrieves a char value from the underlying data source.
    double
    Retrieves a double value from the underlying data source.
    <T extends Enum<T>>
    T
    Retrieves a Enumeration value from the underlying data source.
    float
    Retrieves a float value from the underlying data source.
    int
    Retrieves an int value from the underlying data source.
    long
    Retrieves a long value from the underlying data source.
    short
    Retrieves a short value from the underlying data source.
    Retrieves a String value from the underlying data source.
  • Method Details

    • getBoolean

      boolean getBoolean()
      Retrieves a boolean value from the underlying data source.
      Returns:
      The retrieved value
      Since:
      1.13
    • getByte

      byte getByte() throws NumberFormatException
      Retrieves a byte value from the underlying data source.
      Returns:
      The retrieved value
      Throws:
      NumberFormatException - on format errors
      Since:
      1.13
    • getChar

      char getChar()
      Retrieves a char value from the underlying data source.
      Returns:
      The retrieved value
      Since:
      1.13
    • getShort

      short getShort() throws NumberFormatException
      Retrieves a short value from the underlying data source.
      Returns:
      The retrieved value
      Throws:
      NumberFormatException - on format errors
      Since:
      1.13
    • getInt

      int getInt() throws NumberFormatException
      Retrieves an int value from the underlying data source.
      Returns:
      The retrieved value
      Throws:
      NumberFormatException - on format errors
      Since:
      1.13
    • getLong

      long getLong() throws NumberFormatException
      Retrieves a long value from the underlying data source.
      Returns:
      The retrieved value
      Throws:
      NumberFormatException - on format errors
      Since:
      1.13
    • getFloat

      float getFloat() throws NumberFormatException
      Retrieves a float value from the underlying data source.
      Returns:
      The retrieved value
      Throws:
      NumberFormatException - on format errors
      Since:
      1.13
    • getDouble

      double getDouble() throws NumberFormatException
      Retrieves a double value from the underlying data source.
      Returns:
      The retrieved value
      Throws:
      NumberFormatException - on format errors
      Since:
      1.13
    • getString

      String getString()
      Retrieves a String value from the underlying data source.
      Returns:
      The retrieved value
      Since:
      1.13
    • getEnumeration

      <T extends Enum<T>> T getEnumeration(Class<T> clazz) throws RecordInstantiationException
      Retrieves a Enumeration value from the underlying data source.
      Type Parameters:
      T - the corresponding enumeration type
      Parameters:
      clazz - enumeration type to be used
      Returns:
      The retrieved value
      Throws:
      RecordInstantiationException - in case the received ordinal does not exist in the specified enumeration type
      RecordInstantiationException - input errors
      Since:
      1.14