public class Tcp$ extends java.lang.Object implements ExtensionId<TcpExt>, ExtensionIdProvider
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 connections send a Tcp.Bind
message to the TcpExt.manager()
.
The Java API for generating TCP commands is available at TcpMessage
.
Modifier and Type | Field and Description |
---|---|
static Tcp$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
Tcp$() |
Modifier and Type | Method and Description |
---|---|
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, equals, hashCode
public static final Tcp$ MODULE$
public Tcp$ lookup()
ExtensionIdProvider
lookup
in interface ExtensionIdProvider
public TcpExt createExtension(ExtendedActorSystem system)
ExtensionId
createExtension
in interface ExtensionId<TcpExt>
system
- (undocumented)public TcpExt get(ActorSystem system)
get
in interface ExtensionId<TcpExt>
system
- (undocumented)