Package org.apache.pekko.io
Class Tcp.Connect
java.lang.Object
org.apache.pekko.io.Tcp.Connect
- All Implemented Interfaces:
Serializable,NoSerializationVerificationNeeded,org.apache.pekko.io.SelectionHandler.HasFailureMessage,Tcp.Command,Tcp.Message,scala.Equals,scala.Product
- Enclosing class:
- Tcp
public static final class Tcp.Connect
extends Object
implements Tcp.Command, scala.Product, Serializable
The Connect message is sent to the TCP manager actor, which is obtained via
TcpExt.manager(). Either the manager replies with a Tcp.CommandFailed
or the actor handling the new connection replies with a Tcp.Connected
message.
param: remoteAddress is the address to connect to
param: localAddress optionally specifies a specific address to bind to
param: options Please refer to the Tcp.SO object for a list of all supported options.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConnect(InetSocketAddress remoteAddress, scala.Option<InetSocketAddress> localAddress, scala.collection.immutable.Iterable<Inet.SocketOption> options, scala.Option<scala.concurrent.duration.FiniteDuration> timeout, boolean pullMode) -
Method Summary
Modifier and TypeMethodDescriptionbooleancopy(InetSocketAddress remoteAddress, scala.Option<InetSocketAddress> localAddress, scala.collection.immutable.Iterable<Inet.SocketOption> options, scala.Option<scala.concurrent.duration.FiniteDuration> timeout, boolean pullMode) scala.Option<InetSocketAddress>scala.collection.immutable.Iterable<Inet.SocketOption>scala.Option<scala.concurrent.duration.FiniteDuration>booleanbooleaninthashCode()scala.Option<InetSocketAddress>scala.collection.immutable.Iterable<Inet.SocketOption>options()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>booleanpullMode()scala.Option<scala.concurrent.duration.FiniteDuration>timeout()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNamesMethods inherited from interface org.apache.pekko.io.Tcp.Command
failureMessage
-
Constructor Details
-
Connect
public Connect(InetSocketAddress remoteAddress, scala.Option<InetSocketAddress> localAddress, scala.collection.immutable.Iterable<Inet.SocketOption> options, scala.Option<scala.concurrent.duration.FiniteDuration> timeout, boolean pullMode)
-
-
Method Details
-
remoteAddress
-
localAddress
-
options
-
timeout
public scala.Option<scala.concurrent.duration.FiniteDuration> timeout() -
pullMode
public boolean pullMode() -
copy
public Tcp.Connect copy(InetSocketAddress remoteAddress, scala.Option<InetSocketAddress> localAddress, scala.collection.immutable.Iterable<Inet.SocketOption> options, scala.Option<scala.concurrent.duration.FiniteDuration> timeout, boolean pullMode) -
copy$default$1
-
copy$default$2
-
copy$default$3
-
copy$default$4
public scala.Option<scala.concurrent.duration.FiniteDuration> copy$default$4() -
copy$default$5
public boolean copy$default$5() -
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-