com.ibm.streams.flow.handlers
Class StreamForwarder<T>
- java.lang.Object
-
- com.ibm.streams.flow.handlers.AbstractStreamForwarder<T>
-
- com.ibm.streams.flow.handlers.StreamForwarder<T>
-
- Type Parameters:
T
- Type for the tuples on the stream
- All Implemented Interfaces:
- StreamHandler<T>
public class StreamForwarder<T> extends AbstractStreamForwarder<T>
Forward a stream to anotherStreamHandler
.- Since:
- InfoSphere® Streams Version 3.1
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
IBM_COPYRIGHT
-
Constructor Summary
Constructors Constructor and Description StreamForwarder(StreamHandler<T> destination)
Create aStreamForwarder
that forwards todestination
.
-
Method Summary
Methods Modifier and Type Method and Description StreamHandler<T>
getDestination()
Get the current destination for the stream.-
Methods inherited from class com.ibm.streams.flow.handlers.AbstractStreamForwarder
mark, tuple
-
-
-
-
Field Detail
-
IBM_COPYRIGHT
public static final java.lang.String IBM_COPYRIGHT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StreamForwarder
public StreamForwarder(StreamHandler<T> destination)
Create aStreamForwarder
that forwards todestination
.- Parameters:
destination
- Handler tuples and punctuation marks will be forwarded to.
-
-
Method Detail
-
getDestination
public StreamHandler<T> getDestination()
Get the current destination for the stream.- Specified by:
getDestination
in classAbstractStreamForwarder<T>
- Returns:
- Handler that the stream is forwarded to.
-
-