akka.io
Class Tcp$

java.lang.Object
  extended by akka.io.Tcp$
All Implemented Interfaces:
ExtensionId<TcpExt>, ExtensionIdProvider

public class Tcp$
extends java.lang.Object
implements ExtensionId<TcpExt>, ExtensionIdProvider

TCP Extension for Akka’s IO layer.

All contents of the akka.io package is marked “experimental”.

This marker signifies that APIs may still change in response to user feedback through-out the 2.2 release cycle. The implementation itself is considered stable and ready for production use.

For a full description of the design and philosophy behind this IO implementation please refer to the Akka online documentation.

In order to open an outbound connection send a Tcp.Connect message to the TcpExt.manager().

In order to start listening for inbound connetions send a Tcp.Bind message to the TcpExt.manager().

The Java API for generating TCP commands is available at TcpMessage.


Field Summary
static Tcp$ MODULE$
          Static reference to the singleton instance of this Scala object.
 
Constructor Summary
Tcp$()
           
 
Method Summary
 TcpExt createExtension(ExtendedActorSystem system)
          Is used by Akka to instantiate the Extension identified by this ExtensionId, internal use only.
 TcpExt get(ActorSystem system)
          Java API: retrieve the Tcp extension for the given system.
 Tcp$ lookup()
          Returns the canonical ExtensionId for this Extension
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface akka.actor.ExtensionId
apply, equals, hashCode
 

Field Detail

MODULE$

public static final Tcp$ MODULE$
Static reference to the singleton instance of this Scala object.

Constructor Detail

Tcp$

public Tcp$()
Method Detail

lookup

public Tcp$ lookup()
Description copied from interface: ExtensionIdProvider
Returns the canonical ExtensionId for this Extension

Specified by:
lookup in interface ExtensionIdProvider

createExtension

public TcpExt createExtension(ExtendedActorSystem system)
Description copied from interface: ExtensionId
Is used by Akka to instantiate the Extension identified by this ExtensionId, internal use only.

Specified by:
createExtension in interface ExtensionId<TcpExt>

get

public TcpExt get(ActorSystem system)
Java API: retrieve the Tcp extension for the given system.

Specified by:
get in interface ExtensionId<TcpExt>