akka.actor
Interface IO.Handle

All Known Subinterfaces:
IO.ReadHandle, IO.WriteHandle
All Known Implementing Classes:
IO.ServerHandle, IO.SocketHandle
Enclosing class:
IO

public static interface IO.Handle

An immutable handle to a Java NIO Channel. Contains a reference to the ActorRef that will receive events related to the Channel, a reference to the IOManager that manages the Channel, and a UUID to uniquely identify the Channel.


Method Summary
 IO.ReadHandle asReadable()
           
 IO.ServerHandle asServer()
           
 IO.SocketHandle asSocket()
           
 IO.WriteHandle asWritable()
           
 void close()
          Sends a request to the IOManager to close the Channel associated with this IO.Handle.
 int hashCode()
           
 ActorRef ioManager()
           
 ActorRef owner()
           
 java.util.UUID uuid()
           
 

Method Detail

owner

ActorRef owner()

ioManager

ActorRef ioManager()

uuid

java.util.UUID uuid()

hashCode

int hashCode()
Overrides:
hashCode in class java.lang.Object

asReadable

IO.ReadHandle asReadable()

asWritable

IO.WriteHandle asWritable()

asSocket

IO.SocketHandle asSocket()

asServer

IO.ServerHandle asServer()

close

void close()
Sends a request to the IOManager to close the Channel associated with this IO.Handle.

This can also be performed by sending IO.Close to the IOManager.