| Modifier and Type | Method and Description |
|---|---|
void |
LookAheadStream.setHandler(FaultHandler handler)
Sets the
FaultHandler for the iteration |
| Constructor and Description |
|---|
GuardedStream(Stream<E> stream,
FaultHandler handler)
Creates an instance with a
Stream and a FaultHandler |
| Modifier and Type | Field and Description |
|---|---|
static FaultHandler |
Streams.IGNORE_POLICY
A
IgnoreHandler for failure handling. |
static FaultHandler |
Streams.RETHROW_POLICY
A
RethrowHandler for failure handling. |
static FaultHandler |
Streams.RETHROW_UNRECOVERABLE_POLICY
A
RethrowUnrecoverableHandler for failure handling. |
static FaultHandler |
Streams.STOPFAST_POLICY
A
StopFastHandler for failure handling. |
| Modifier and Type | Method and Description |
|---|---|
GuardedStream<E> |
GuardWithClause.with(FaultHandler handler)
Returns a
Stream with configured with a given FaultHandler. |
| Modifier and Type | Method and Description |
|---|---|
URI |
PublishRsWithClause.with(FaultHandler handler)
Configures a
FaultHandler for publication and returns the locator of the resultset. |
| Modifier and Type | Class and Description |
|---|---|
class |
CountingHandler
A partial implementation for
FaultHandler that count failures and keep track of the last observed failure. |
class |
IgnoreHandler
A
FaultHandler that silently absorbs all failures. |
class |
RethrowHandler
A
FaultHandler that rethrows all failures (i.e. |
class |
RethrowUnrecoverableHandler
A
FaultHandler that silently absorbs StreamContingencys
but re-throws all other failures. |
class |
StopFastHandler
A
FaultHandler that silently stops iteration at the first occurrence of any failure. |
class |
StopUnrecoverableHandler
A
FaultHandler that silently absorbs StreamContingencys
and stops iteration at the first unrecoverable failure. |
| Modifier and Type | Method and Description |
|---|---|
void |
RsPublisher.setFaultHandler(FaultHandler handler)
Sets the
FaultHandler for reading and writing failures. |
Copyright © 2014. All Rights Reserved.