com.ibm.streams.flow.handlers
Class AbstractStreamForwarder<T>
- java.lang.Object
-
- com.ibm.streams.flow.handlers.AbstractStreamForwarder<T>
-
- Type Parameters:
T
- Type for the tuples on the stream
- All Implemented Interfaces:
- StreamHandler<T>
- Direct Known Subclasses:
- DynamicForwarder, StreamForwarder
public abstract class AbstractStreamForwarder<T> extends java.lang.Object implements StreamHandler<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 AbstractStreamForwarder()
-
Method Summary
Methods Modifier and Type Method and Description abstract StreamHandler<T>
getDestination()
Get the current destination for the stream.void
mark(StreamingData.Punctuation mark)
Send the punctuation mark to the destination that is returned bygetDestination()
.void
tuple(T tuple)
Send the tuple to the destination that is returned bygetDestination()
.
-
-
-
Field Detail
-
IBM_COPYRIGHT
public static final java.lang.String IBM_COPYRIGHT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDestination
public abstract StreamHandler<T> getDestination()
Get the current destination for the stream.- Returns:
- Handler that the stream is forwarded to.
-
tuple
public void tuple(T tuple) throws java.lang.Exception
Send the tuple to the destination that is returned bygetDestination()
.- Specified by:
tuple
in interfaceStreamHandler<T>
- Parameters:
tuple
- The tuple.- Throws:
java.lang.Exception
- Failure to process the tuple.
-
mark
public void mark(StreamingData.Punctuation mark) throws java.lang.Exception
Send the punctuation mark to the destination that is returned bygetDestination()
.- Specified by:
mark
in interfaceStreamHandler<T>
- Parameters:
mark
- The punctuation mark.- Throws:
java.lang.Exception
- Failure to process the punctuation mark.
-
-