akka.io
Class Tcp.Connect

java.lang.Object
  extended by akka.io.Tcp.Connect
All Implemented Interfaces:
NoSerializationVerificationNeeded, SelectionHandler.HasFailureMessage, Tcp.Command, Tcp.Message, java.io.Serializable, scala.Equals, scala.Product
Enclosing class:
Tcp

public static class Tcp.Connect
extends java.lang.Object
implements Tcp.Command, scala.Product, scala.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 SO object for a list of all supported options.

See Also:
Serialized Form

Constructor Summary
Tcp.Connect(java.net.InetSocketAddress remoteAddress, scala.Option<java.net.InetSocketAddress> localAddress, scala.collection.immutable.Traversable<Inet.SocketOption> options, scala.Option<scala.concurrent.duration.FiniteDuration> timeout, boolean pullMode)
           
 
Method Summary
 scala.Option<java.net.InetSocketAddress> localAddress()
           
 scala.collection.immutable.Traversable<Inet.SocketOption> options()
           
 boolean pullMode()
           
 java.net.InetSocketAddress remoteAddress()
           
 scala.Option<scala.concurrent.duration.FiniteDuration> timeout()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface akka.io.Tcp.Command
failureMessage
 
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
 
Methods inherited from interface scala.Equals
canEqual, equals
 

Constructor Detail

Tcp.Connect

public Tcp.Connect(java.net.InetSocketAddress remoteAddress,
                   scala.Option<java.net.InetSocketAddress> localAddress,
                   scala.collection.immutable.Traversable<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.Traversable<Inet.SocketOption> options()

timeout

public scala.Option<scala.concurrent.duration.FiniteDuration> timeout()

pullMode

public boolean pullMode()