public class SavePolicy extends Object implements FailurePolicy
| Modifier and Type | Class and Description |
|---|---|
static class |
SavePolicy.Builder |
public void handle(Event event, Throwable cause) throws EventDeliveryException
FailurePolicyhandle in interface FailurePolicyevent - The eventcause - The cause of the failureEventDeliveryException - The policy failed to handle the event. When
this is thrown, the Flume transaction will
be rolled back and the event will be retried
along with the rest of the batch.public void sync()
throws EventDeliveryException
FailurePolicySyncable.sync().sync in interface FailurePolicyEventDeliveryException - The policy failed while syncing data.
When this is thrown, the Flume transaction
will be rolled back and the batch will be
retried.public void close()
throws EventDeliveryException
FailurePolicyclose in interface FailurePolicyEventDeliveryException - The policy failed while closing resources.
When this is thrown, the Flume transaction
will be rolled back and the batch will be
retried.Copyright © 2009-2016 Apache Software Foundation. All Rights Reserved.