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.CommandFailedor the actor handling the new connection replies with aTcp.Connectedmessage.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.SOobject 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 booleancanEqual(java.lang.Object x$1)Tcp.Connectcopy(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.InetSocketAddresscopy$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()booleancopy$default$5()booleanequals(java.lang.Object x$1)inthashCode()scala.Option<java.net.InetSocketAddress>localAddress()scala.collection.immutable.Iterable<Inet.SocketOption>options()intproductArity()java.lang.ObjectproductElement(int x$1)java.lang.StringproductElementName(int x$1)scala.collection.Iterator<java.lang.Object>productIterator()java.lang.StringproductPrefix()booleanpullMode()java.net.InetSocketAddressremoteAddress()scala.Option<scala.concurrent.duration.FiniteDuration>timeout()java.lang.StringtoString()-
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:
productPrefixin interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArityin interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElementin interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equalsin interfacescala.Equals- Overrides:
equalsin classjava.lang.Object
-
-