Interface CleanGapsStatementBuilder

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 CleanGapsStatementBuilder
Contract which defines how to build a PreparedStatement for use on JdbcEventStorageEngine.cleanGaps(TrackingToken)
Since:
4.3
Author:
Lucas Campos
  • Method Details

    • build

      PreparedStatement build(Connection connection, EventSchema schema, SortedSet<Long> gaps) throws SQLException
      Creates a statement to be used at JdbcEventStorageEngine.cleanGaps(TrackingToken)
      Parameters:
      connection - The connection to the database.
      schema - The EventSchema to be used
      gaps - The Set of gaps taken from the tracking token.
      Returns:
      The newly created PreparedStatement.
      Throws:
      SQLException - when an exception occurs while creating the prepared statement.