18 lines
322 B
Java
18 lines
322 B
Java
|
package org.gcube.data.streams.handlers;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* A {@link FaultHandler} that silently stops iteration at the first occurrence of any failure.
|
||
|
*
|
||
|
* @author Fabio Simeoni
|
||
|
*
|
||
|
*/
|
||
|
public class StopFastHandler implements FaultHandler {
|
||
|
|
||
|
@Override
|
||
|
public void handle(RuntimeException failure) {
|
||
|
|
||
|
iteration.stop();
|
||
|
}
|
||
|
}
|