Class Tcp.ErrorClosed

java.lang.Object
org.apache.pekko.io.Tcp.ErrorClosed
All Implemented Interfaces:
Serializable, DeadLetterSuppression, NoSerializationVerificationNeeded, Tcp.ConnectionClosed, Tcp.Event, Tcp.Message, scala.Equals, scala.Product
Enclosing class:
Tcp

public static final class Tcp.ErrorClosed extends Object implements Tcp.ConnectionClosed, scala.Product, Serializable
The connection has been closed due to an IO error.
See Also:
  • Constructor Details

    • ErrorClosed

      public ErrorClosed(String cause)
  • Method Details

    • cause

      public String cause()
    • isErrorClosed

      public boolean isErrorClosed()
      Description copied from interface: Tcp.ConnectionClosed
      true iff the connection has been closed due to an IO error.
      Specified by:
      isErrorClosed in interface Tcp.ConnectionClosed
    • getErrorCause

      public String getErrorCause()
      Description copied from interface: Tcp.ConnectionClosed
      If isErrorClosed returns true, then the error condition can be retrieved by this method.
      Specified by:
      getErrorCause in interface Tcp.ConnectionClosed
    • copy

      public Tcp.ErrorClosed copy(String cause)
    • copy$default$1

      public String 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