Package io.debezium.storage.jdbc
Interface RetriableConnection.ConnectionConsumer
- Enclosing class:
- RetriableConnection
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(Connection conn) Performs this operation on the given connection.Returns a composedConnectionFunctionVoidthat performs, in sequence, this operation followed by theafteroperation.
-
Method Details
-
accept
Performs this operation on the given connection.- Parameters:
conn- the input connection- Throws:
SQLException
-
andThen
default RetriableConnection.ConnectionConsumer andThen(RetriableConnection.ConnectionConsumer after) Returns a composedConnectionFunctionVoidthat performs, in sequence, this operation followed by theafteroperation. If performing either operation throws an exception, it is relayed to the caller of the composed operation. If performing this operation throws an exception, theafteroperation will not be performed.- Parameters:
after- the operation to perform after this operation- Returns:
- a composed
ConnectionFunctionVoidthat performs in sequence this operation followed by theafteroperation - Throws:
NullPointerException- ifafteris null
-