Class SinkShape<T>

java.lang.Object
org.apache.pekko.stream.Shape
org.apache.pekko.stream.SinkShape<T>
All Implemented Interfaces:
Serializable, scala.Equals, scala.Product

public final class SinkShape<T> extends Shape implements scala.Product, Serializable
A Sink Shape has exactly one input and no outputs, it models a data sink.
See Also:
  • Constructor Details

    • SinkShape

      public SinkShape(Inlet<T> in)
  • Method Details

    • of

      public static <T> SinkShape<T> of(Inlet<T> inlet)
      Java API
    • apply

      public static <T> SinkShape<T> apply(Inlet<T> in)
    • unapply

      public static <T> scala.Option<Inlet<T>> unapply(SinkShape<T> x$0)
    • in

      public Inlet<T> in()
    • inlets

      public scala.collection.immutable.Seq<Inlet<?>> inlets()
      Description copied from class: Shape
      Scala API: get a list of all input ports
      Specified by:
      inlets in class Shape
    • outlets

      public scala.collection.immutable.Seq<Outlet<?>> outlets()
      Description copied from class: Shape
      Scala API: get a list of all output ports
      Specified by:
      outlets in class Shape
    • deepCopy

      public SinkShape<T> deepCopy()
      Description copied from class: Shape
      Create a copy of this Shape object, returning the same type as the original; this constraint can unfortunately not be expressed in the type system.
      Specified by:
      deepCopy in class Shape
    • copy

      public <T> SinkShape<T> copy(Inlet<T> in)
    • copy$default$1

      public <T> Inlet<T> copy$default$1()
    • productPrefix

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

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

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

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

      public boolean canEqual(Object x$1)
      Specified by:
      canEqual in interface scala.Equals
    • productElementName

      public String productElementName(int x$1)
      Specified by:
      productElementName in interface scala.Product
    • hashCode

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

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

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