org.gcube.data.streams.handlers
Class RethrowUnrecoverableHandler

java.lang.Object
  extended by org.gcube.data.streams.handlers.RethrowUnrecoverableHandler
All Implemented Interfaces:
FaultHandler

public class RethrowUnrecoverableHandler
extends Object
implements FaultHandler

A FaultHandler that silently absorbs StreamContingencyExceptions but re-throws all other failures.

Author:
Fabio Simeoni

Constructor Summary
RethrowUnrecoverableHandler()
           
 
Method Summary
 FaultResponse handle(RuntimeException failure)
          Indicates whether iteration should continue or stop the iteration on the occurrence of an iteration failure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RethrowUnrecoverableHandler

public RethrowUnrecoverableHandler()
Method Detail

handle

public FaultResponse handle(RuntimeException failure)
Description copied from interface: FaultHandler
Indicates whether iteration should continue or stop the iteration on the occurrence of an iteration failure.

Specified by:
handle in interface FaultHandler
Parameters:
failure - the failure
Returns:
the FaultResponse


Copyright © 2012. All Rights Reserved.