E
- An implementation of EventMessage
contained within the JdbcDeadLetter
implementation this
converter converts.D
- An implementation of JdbcDeadLetter
converted by this converter.@FunctionalInterface public interface DeadLetterJdbcConverter<E extends EventMessage<?>,D extends JdbcDeadLetter<E>>
ResultSet
in JdbcDeadLetter
implementation of type
D
Modifier and Type | Method and Description |
---|---|
D |
convertToLetter(ResultSet resultSet)
Converts the given
resultSet in an implementation of JdbcDeadLetter . |
D convertToLetter(ResultSet resultSet) throws SQLException
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.
resultSet
- The ResultSet
to convert into a JdbcDeadLetter
JdbcDeadLetter
based on the given resultSet
.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.Copyright © 2010–2024. All rights reserved.