Class Batch<In,​Out>

  • All Implemented Interfaces:
    Graph<FlowShape<In,​Out>,​NotUsed>, java.io.Serializable, scala.Equals, scala.Product, scala.Serializable

    public final class Batch<In,​Out>
    extends GraphStage<FlowShape<In,​Out>>
    implements scala.Product, scala.Serializable
    INTERNAL API
    See Also:
    Serialized Form
    • Constructor Detail

      • Batch

        public Batch​(long max,
                     scala.Function1<In,​java.lang.Object> costFn,
                     scala.Function1<In,​Out> seed,
                     scala.Function2<Out,​In,​Out> aggregate)
    • Method Detail

      • apply

        public static <In,​Out> Batch<In,​Out> apply​(long max,
                                                               scala.Function1<In,​java.lang.Object> costFn,
                                                               scala.Function1<In,​Out> seed,
                                                               scala.Function2<Out,​In,​Out> aggregate)
      • unapply

        public static <In,​Out> scala.Option<scala.Tuple4<java.lang.Object,​scala.Function1<In,​java.lang.Object>,​scala.Function1<In,​Out>,​scala.Function2<Out,​In,​Out>>> unapply​(Batch<In,​Out> x$0)
      • named

        public static Graph<S,​M> named​(java.lang.String name)
      • async

        public static Graph<S,​M> async()
      • async

        public static Graph<S,​M> async​(java.lang.String dispatcher)
      • async

        public static Graph<S,​M> async​(java.lang.String dispatcher,
                                             int inputBufferSize)
      • addAttributes

        public static Graph<S,​M> addAttributes​(Attributes attr)
      • initialAttributes

        protected static Attributes initialAttributes()
      • withAttributes

        public static final Graph<S,​M> withAttributes​(Attributes attr)
      • createLogicAndMaterializedValue

        public static final scala.Tuple2<GraphStageLogic,​NotUsed> createLogicAndMaterializedValue​(Attributes inheritedAttributes)
      • max

        public long max()
      • costFn

        public scala.Function1<In,​java.lang.Object> costFn()
      • seed

        public scala.Function1<In,​Out> seed()
      • aggregate

        public scala.Function2<Out,​In,​Out> aggregate()
      • shape

        public FlowShape<In,​Out> shape()
        Description copied from interface: Graph
        The shape of a graph is all that is externally visible: its inlets and outlets.
        Specified by:
        shape in interface Graph<In,​Out>
        Returns:
        (undocumented)
      • copy

        public <In,​Out> Batch<In,​Out> copy​(long max,
                                                       scala.Function1<In,​java.lang.Object> costFn,
                                                       scala.Function1<In,​Out> seed,
                                                       scala.Function2<Out,​In,​Out> aggregate)
      • copy$default$1

        public <In,​Out> long copy$default$1()
      • copy$default$2

        public <In,​Out> scala.Function1<In,​java.lang.Object> copy$default$2()
      • copy$default$3

        public <In,​Out> scala.Function1<In,​Out> copy$default$3()
      • copy$default$4

        public <In,​Out> scala.Function2<Out,​In,​Out> copy$default$4()
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        Overrides:
        equals in class java.lang.Object