Interface DeadLetterJdbcConverter<E extends EventMessage,D extends JdbcDeadLetter<E>>

Type Parameters:
E - An implementation of EventMessage contained within the JdbcDeadLetter implementation this converter converts.
D - An implementation of JdbcDeadLetter converted by this converter.
All Known Implementing Classes:
DefaultDeadLetterJdbcConverter
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface DeadLetterJdbcConverter<E extends EventMessage,D extends JdbcDeadLetter<E>>
A functional interface describing how to convert a ResultSet in JdbcDeadLetter implementation of type D
Since:
4.8.0
Author:
Steven van Beelen
  • Method Summary

    Modifier and Type
    Method
    Description
    Converts the given resultSet in an implementation of JdbcDeadLetter.
  • Method Details

    • convertToLetter

      D convertToLetter(ResultSet resultSet) throws SQLException
      Converts the given resultSet in an implementation of JdbcDeadLetter.

      It is recommended to validate the type of EventMessage to place in the result, as different types require additional information to be deserialized and returned.

      Parameters:
      resultSet - The ResultSet to convert into a JdbcDeadLetter
      Returns:
      An implementation of JdbcDeadLetter based on the given resultSet.
      Throws:
      SQLException - if the a columnLabel in the given resultSet does not exist, if a database access error occurs or if the given resultSet is closed.