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

Field Summary
static Iteration iteration
          The ongoing iteration.
 
Method Summary
 void handle(RuntimeException failure)
          Indicates whether iteration should continue or stop the iteration on the occurrence of an iteration failure.
 

Field Detail

iteration

static final Iteration iteration
The ongoing iteration.

Method Detail

handle

void handle(RuntimeException failure)
Indicates whether iteration should continue or stop the iteration on the occurrence of an iteration failure.

Parameters:
failure - the failure
Throws:
RuntimeException - if no element can be yielded from the input element


Copyright © 2012. All Rights Reserved.