Interface ReadEventDataWithGapsStatementBuilder
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Contract which defines how to build a PreparedStatement for use on
JdbcEventStorageEngine.fetchTrackedEvents(TrackingToken, int)- Since:
- 4.3
- Author:
- Lucas Campos
-
Method Summary
Modifier and TypeMethodDescriptionbuild(Connection connection, EventSchema schema, long globalIndex, int batchSize, List<Long> gaps) Creates a statement to be used atJdbcEventStorageEngine.fetchTrackedEvents(TrackingToken, int)
-
Method Details
-
build
PreparedStatement build(Connection connection, EventSchema schema, long globalIndex, int batchSize, List<Long> gaps) throws SQLException Creates a statement to be used atJdbcEventStorageEngine.fetchTrackedEvents(TrackingToken, int)- Parameters:
connection- The connection to the database.schema- The EventSchema to be usedglobalIndex- The index taken from the tracking token.batchSize- The number of items to include in the batchgaps- 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.- See Also:
-