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 TypeMethodDescriptionboolean
copy
(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>
boolean
boolean
int
hashCode()
scala.Option<InetSocketAddress>
scala.collection.immutable.Iterable<Inet.SocketOption>
options()
int
productElement
(int x$1) productElementName
(int x$1) scala.collection.Iterator<Object>
boolean
pullMode()
scala.Option<scala.concurrent.duration.FiniteDuration>
timeout()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface scala.Product
productElementNames
Methods 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:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArity
in interfacescala.Product
-
productElement
- Specified by:
productElement
in interfacescala.Product
-
productIterator
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-