org.gcube.data.streams.dsl.guard
Class GuardWithClause<E>

java.lang.Object
  extended by org.gcube.data.streams.dsl.StreamClause<E,StreamClauseEnv<E>>
      extended by org.gcube.data.streams.dsl.guard.GuardWithClause<E>
Type Parameters:
E - the type of stream elements

public class GuardWithClause<E>
extends StreamClause<E,StreamClauseEnv<E>>

The clause of fold sentences of the Stream DSL in which a FaultHandler is configured on the output stream.

Author:
Fabio Simeoni

Field Summary
 
Fields inherited from class org.gcube.data.streams.dsl.StreamClause
env
 
Constructor Summary
GuardWithClause(Stream<E> stream)
          Creates an instance with an input Stream.
 
Method Summary
 GuardedStream<E> with(FaultHandler handler)
          Returns a Stream with configured with a given FaultHandler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuardWithClause

public GuardWithClause(Stream<E> stream)
Creates an instance with an input Stream.

Parameters:
stream - the stream
Method Detail

with

public GuardedStream<E> with(FaultHandler handler)
Returns a Stream with configured with a given FaultHandler.

Parameters:
handler - the handler
Returns:
the stream


Copyright © 2012. All Rights Reserved.