@PublicEvolving public interface CassandraFailureHandler extends Serializable
CassandraFailureHandler
is provided by the user to define how Throwable
should be handled, e.g. dropping them if the failure is only temporary.
Example:
{@code private static class ExampleFailureHandler implements CassandraFailureHandler {
Modifier and Type | Method and Description |
---|---|
void |
onFailure(Throwable failure)
Handle a failed
Throwable . |
void onFailure(Throwable failure) throws IOException
Throwable
.failure
- the cause of failureIOException
- if the sink should fail on this failure, the implementation should
rethrow the throwable or a custom oneCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.