Class IO.ServerHandle

  extended by akka.actor.IO.ServerHandle
All Implemented Interfaces:
IO.Handle, java.io.Serializable, scala.Equals, scala.Product
Enclosing class:

public static class IO.ServerHandle
extends java.lang.Object
implements IO.Handle, scala.Product, scala.Serializable

A IO.Handle to a ServerSocketChannel. Instances are normally created by IOManager.listen().

See Also:
Serialized Form

Constructor Summary
IO.ServerHandle(ActorRef owner, ActorRef ioManager, java.util.UUID uuid)
Method Summary
 IO.SocketHandle accept(scala.collection.immutable.Seq<IO.SocketOption> options, ActorRef socketOwner)
          Sends a request to the IOManager to accept an incoming connection to the ServerSocketChannel associated with this IO.Handle.
 IO.ServerHandle asServer()
 ActorRef ioManager()
 ActorRef owner()
 java.util.UUID uuid()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface akka.actor.IO.Handle
asReadable, asSocket, asWritable, close, hashCode
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
Methods inherited from interface scala.Equals
canEqual, equals

Constructor Detail


public IO.ServerHandle(ActorRef owner,
                       ActorRef ioManager,
                       java.util.UUID uuid)
Method Detail


public ActorRef owner()
Specified by:
owner in interface IO.Handle


public ActorRef ioManager()
Specified by:
ioManager in interface IO.Handle


public java.util.UUID uuid()
Specified by:
uuid in interface IO.Handle


public IO.ServerHandle asServer()
Specified by:
asServer in interface IO.Handle


public IO.SocketHandle accept(scala.collection.immutable.Seq<IO.SocketOption> options,
                              ActorRef socketOwner)
Sends a request to the IOManager to accept an incoming connection to the ServerSocketChannel associated with this IO.Handle.

This can also be performed by creating a new IO.SocketHandle and sending it within an IO.Accept to the IOManager.

options - Seq of akka.actor.IO.SocketOptions to set on accepted socket
socketOwner - the ActorRef that should receive events associated with the SocketChannel. The ActorRef for the current Actor will be used implicitly.
a new SocketHandle that can be used to perform actions on the new connection's SocketChannel.