Interface CassandraFailureHandler
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
NoOpCassandraFailureHandler
@PublicEvolving public interface CassandraFailureHandler extends Serializable
An implementation ofCassandraFailureHandler
is provided by the user to define howThrowable
should be handled, e.g. dropping them if the failure is only temporary.Example:
{@code private static class ExampleFailureHandler implements CassandraFailureHandler {
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onFailure(Throwable failure)
Handle a failedThrowable
.
-
-
-
Method Detail
-
onFailure
void onFailure(Throwable failure) throws IOException
Handle a failedThrowable
.- Parameters:
failure
- the cause of failure- Throws:
IOException
- if the sink should fail on this failure, the implementation should rethrow the throwable or a custom one
-
-