org.gcube.data.streams.handlers
Interface FaultHandler
- All Known Implementing Classes:
- CountingHandler, IgnoreHandler, RethrowHandler, RethrowUnrecoverableHandler, StopFastHandler, StopUnrecoverableHandler
public interface FaultHandler
Handlers of Stream iteration failures.
- Author:
- Fabio Simeoni
handle
FaultResponse handle(RuntimeException failure)
throws StreamContingencyException,
RuntimeException
- Indicates whether iteration should continue or stop the iteration on the occurrence of an iteration failure.
- Parameters:
failure - the failure
- Returns:
- the
FaultResponse
- Throws:
StreamContingencyException - if no element can be yielded, because the input element violates pre-conditions
RuntimeException - if no element can be yielded from the input element, because of an unrecoverable condition
Copyright © 2012. All Rights Reserved.