FaultPolicy
Date: 2013-06-18

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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)

Nested Class Summary
`static class` | `FaultPolicy.SkipElementException`

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.

Method Detail

### 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD