akka.actor
Class IO.ServerHandle

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

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.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

IO.ServerHandle

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

owner

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

ioManager

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

uuid

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

asServer

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

accept

public IO.SocketHandle accept(scala.collection.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.

Parameters:
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.
Returns:
a new SocketHandle that can be used to perform actions on the new connection's SocketChannel.