Package akka.stream.scaladsl
Class Tcp.ServerBinding
- java.lang.Object
-
- akka.stream.scaladsl.Tcp.ServerBinding
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
- Enclosing class:
- Tcp
public static final class Tcp.ServerBinding extends java.lang.Object implements scala.Product, java.io.Serializable
Represents a successful TCP server binding.Not indented for user construction
param: localAddress The address the server was bound to param: unbindAction a function that will trigger unbind of the server param: whenUnbound A future that is completed when the server is unbound, or failed if the server binding fails
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canEqual(java.lang.Object x$1)
Tcp.ServerBinding
copy(java.net.InetSocketAddress localAddress, scala.Function0<scala.concurrent.Future<scala.runtime.BoxedUnit>> unbindAction, scala.concurrent.Future<Done> whenUnbound)
java.net.InetSocketAddress
copy$default$1()
boolean
equals(java.lang.Object x$1)
int
hashCode()
java.net.InetSocketAddress
localAddress()
int
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
java.lang.String
toString()
scala.concurrent.Future<scala.runtime.BoxedUnit>
unbind()
scala.concurrent.Future<Done>
whenUnbound()
-
-
-
Method Detail
-
localAddress
public java.net.InetSocketAddress localAddress()
-
whenUnbound
public scala.concurrent.Future<Done> whenUnbound()
-
unbind
public scala.concurrent.Future<scala.runtime.BoxedUnit> unbind()
-
copy
public Tcp.ServerBinding copy(java.net.InetSocketAddress localAddress, scala.Function0<scala.concurrent.Future<scala.runtime.BoxedUnit>> unbindAction, scala.concurrent.Future<Done> whenUnbound)
-
copy$default$1
public java.net.InetSocketAddress copy$default$1()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-