Class WireTap$


  • public class WireTap$
    extends java.lang.Object
    Fan-out the stream to two output streams - a 'main' and a 'tap' one. Each incoming element is emitted to the 'main' output; elements are also emitted to the 'tap' output if there is demand; otherwise they are dropped.

    '''Emits when''' element is available and demand exists from the 'main' output; the element will also be sent to the 'tap' output if there is demand.

    '''Backpressures when''' the 'main' output backpressures

    '''Completes when''' upstream completes

    '''Cancels when''' the 'main' output cancels

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static WireTap$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Constructor Summary

      Constructors 
      Constructor Description
      WireTap$()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> Graph<FanOutShape2<T,​T,​T>,​NotUsed> create()
      Create a new WireTap operator with the specified output type.
      • Methods inherited from class java.lang.Object

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

      • MODULE$

        public static final WireTap$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • WireTap$

        public WireTap$()
    • Method Detail

      • create

        public <T> Graph<FanOutShape2<T,​T,​T>,​NotUsed> create()
        Create a new WireTap operator with the specified output type.