org.gcube.contentmanagement.gcubedocumentlibrary.streams.faults
Interface FaultPolicy
- All Superinterfaces:
- IFaultPolicy<java.lang.RuntimeException>
public interface FaultPolicy
- extends IFaultPolicy<java.lang.RuntimeException>
A specialisation of IFaultPolicy for use with Iterator-based streams.
- Author:
- Fabio Simeoni (University of Strathclyde)
|
Method Summary |
boolean |
onFault(java.lang.Exception e,
int count)
Indicates whether the iterator should continue or stop the iteration on the occurrence of a fault. |
onFault
boolean onFault(java.lang.Exception e,
int count)
- Indicates whether the iterator should continue or stop the iteration on the occurrence of a fault.
- Specified by:
onFault in interface IFaultPolicy<java.lang.RuntimeException>
- Parameters:
e - the fault.count - the number of faults encountered so far during iteration.
- Returns:
true if iteration should continue, false otherwise.