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 getBoolean()
    Retrieves a boolean value from the underlying data source.
    byte getByte()
    Retrieves a byte value from the underlying data source.
    char getChar()
    Retrieves a char value from the underlying data source.
    double getDouble()
    Retrieves a double value from the underlying data source.
    <T extends java.lang.Enum<T>>
    T
    getEnumeration​(java.lang.Class<T> clazz)
    Retrieves a Enumeration value from the underlying data source.
    float getFloat()
    Retrieves a float value from the underlying data source.
    int getInt()
    Retrieves an int value from the underlying data source.
    long getLong()
    Retrieves a long value from the underlying data source.
    short getShort()
    Retrieves a short value from the underlying data source.
    java.lang.String getString()
    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 java.lang.NumberFormatException
      Retrieves a byte value from the underlying data source.
      Returns:
      The retrieved value
      Throws:
      java.lang.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 java.lang.NumberFormatException
      Retrieves a short value from the underlying data source.
      Returns:
      The retrieved value
      Throws:
      java.lang.NumberFormatException - on format errors
      Since:
      1.13
    • getInt

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

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

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

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

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

      <T extends java.lang.Enum<T>> T getEnumeration​(java.lang.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