Interface DeadLetterTableFactory

All Known Implementing Classes:
GenericDeadLetterTableFactory
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 DeadLetterTableFactory
A functional interface to create a JDBC-specific DeadLetter entry table and its indices.
Since:
4.8.0
Author:
Steven van Beelen
  • Method Details

    • createTableStatement

      Statement createTableStatement(Connection connection, DeadLetterSchema schema) throws SQLException
      Creates a Statement to use for construction of a DeadLetter entry table and its indices.

      The returned Statement typically contains several SQL statements and hence the invoker is inclined to execute the Statement as a batch by invoking Statement.executeBatch(). Furthermore, it is expected that this statement at least constructs the required uniqueness constraints.

      Parameters:
      connection - The connection to create the Statement with.
      schema - The schema defining the table and column names.
      Returns:
      A statement to create the table and its indices with, ready to be executed.
      Throws:
      SQLException - when an exception occurs while creating the Statement.