Package akka.io
Class Tcp.Connect
- java.lang.Object
-
- akka.io.Tcp.Connect
-
- All Implemented Interfaces:
NoSerializationVerificationNeeded
,akka.io.SelectionHandler.HasFailureMessage
,Tcp.Command
,Tcp.Message
,java.io.Serializable
,scala.Equals
,scala.Product
- Enclosing class:
- Tcp
public static final class Tcp.Connect extends java.lang.Object implements Tcp.Command, scala.Product, java.io.Serializable
The Connect message is sent to the TCP manager actor, which is obtained viaTcpExt.manager()
. Either the manager replies with aTcp.CommandFailed
or the actor handling the new connection replies with aTcp.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Connect(java.net.InetSocketAddress remoteAddress, scala.Option<java.net.InetSocketAddress> localAddress, scala.collection.immutable.Iterable<Inet.SocketOption> options, scala.Option<scala.concurrent.duration.FiniteDuration> timeout, boolean pullMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canEqual(java.lang.Object x$1)
Tcp.Connect
copy(java.net.InetSocketAddress remoteAddress, scala.Option<java.net.InetSocketAddress> localAddress, scala.collection.immutable.Iterable<Inet.SocketOption> options, scala.Option<scala.concurrent.duration.FiniteDuration> timeout, boolean pullMode)
java.net.InetSocketAddress
copy$default$1()
scala.Option<java.net.InetSocketAddress>
copy$default$2()
scala.collection.immutable.Iterable<Inet.SocketOption>
copy$default$3()
scala.Option<scala.concurrent.duration.FiniteDuration>
copy$default$4()
boolean
copy$default$5()
boolean
equals(java.lang.Object x$1)
int
hashCode()
scala.Option<java.net.InetSocketAddress>
localAddress()
scala.collection.immutable.Iterable<Inet.SocketOption>
options()
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()
boolean
pullMode()
java.net.InetSocketAddress
remoteAddress()
scala.Option<scala.concurrent.duration.FiniteDuration>
timeout()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface akka.io.Tcp.Command
failureMessage
-
-
-
-
Constructor Detail
-
Connect
public Connect(java.net.InetSocketAddress remoteAddress, scala.Option<java.net.InetSocketAddress> localAddress, scala.collection.immutable.Iterable<Inet.SocketOption> options, scala.Option<scala.concurrent.duration.FiniteDuration> timeout, boolean pullMode)
-
-
Method Detail
-
remoteAddress
public java.net.InetSocketAddress remoteAddress()
-
localAddress
public scala.Option<java.net.InetSocketAddress> localAddress()
-
options
public scala.collection.immutable.Iterable<Inet.SocketOption> options()
-
timeout
public scala.Option<scala.concurrent.duration.FiniteDuration> timeout()
-
pullMode
public boolean pullMode()
-
copy
public Tcp.Connect copy(java.net.InetSocketAddress remoteAddress, scala.Option<java.net.InetSocketAddress> localAddress, scala.collection.immutable.Iterable<Inet.SocketOption> options, scala.Option<scala.concurrent.duration.FiniteDuration> timeout, boolean pullMode)
-
copy$default$1
public java.net.InetSocketAddress copy$default$1()
-
copy$default$2
public scala.Option<java.net.InetSocketAddress> copy$default$2()
-
copy$default$3
public scala.collection.immutable.Iterable<Inet.SocketOption> 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
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
-
-