com.ibm.streams.flow.handlers

Class AbstractStreamForwarder<T>

  • java.lang.Object
    • com.ibm.streams.flow.handlers.AbstractStreamForwarder<T>
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String IBM_COPYRIGHT 
    • 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 by getDestination().
      void tuple(T tuple)
      Send the tuple to the destination that is returned by getDestination().
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractStreamForwarder

        public AbstractStreamForwarder()
    • 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 by getDestination().
        Specified by:
        tuple in interface StreamHandler<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 by getDestination().
        Specified by:
        mark in interface StreamHandler<T>
        Parameters:
        mark - The punctuation mark.
        Throws:
        java.lang.Exception - Failure to process the punctuation mark.