Class SinkWrapper<T>

  • All Implemented Interfaces:
    Closeable, Sink<T>
    Direct Known Subclasses:
    SinkCounting

    public class SinkWrapper<T>
    extends java.lang.Object
    implements Sink<T>
    Wrap one sink in another - to pass on behaviour, the derived Sink must call super.operation See also: SinkSplit
    • Constructor Summary

      Constructors 
      Constructor Description
      SinkWrapper​(Sink<T> sink)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void flush()  
      void send​(T item)  
      • Methods inherited from class java.lang.Object

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

      • SinkWrapper

        public SinkWrapper​(Sink<T> sink)
    • Method Detail

      • flush

        public void flush()
        Specified by:
        flush in interface Sink<T>
      • send

        public void send​(T item)
        Specified by:
        send in interface Sink<T>
      • close

        public void close()
        Specified by:
        close in interface Closeable