com.sun.sgs.impl.io
Class SocketAcceptor.AcceptHandler

java.lang.Object
  extended by org.apache.mina.common.IoHandlerAdapter
      extended by com.sun.sgs.impl.io.SocketConnectionListener
          extended by com.sun.sgs.impl.io.SocketAcceptor.AcceptHandler
All Implemented Interfaces:
org.apache.mina.common.IoHandler
Enclosing class:
SocketAcceptor

static final class SocketAcceptor.AcceptHandler
extends SocketConnectionListener

Internal adaptor class to handle events from the acceptor itself.


Constructor Summary
SocketAcceptor.AcceptHandler(AcceptorListener listener)
          Constructs a new AcceptHandler with an AcceptorListener that will be notified as new connections arrive.
 
Method Summary
 void sessionCreated(org.apache.mina.common.IoSession session)
          As new MINA IoSessions come in, set up a SocketConnection and notify the associated AcceptorListener.
 
Methods inherited from class com.sun.sgs.impl.io.SocketConnectionListener
exceptionCaught, messageReceived, sessionClosed, sessionOpened
 
Methods inherited from class org.apache.mina.common.IoHandlerAdapter
messageSent, sessionIdle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketAcceptor.AcceptHandler

public SocketAcceptor.AcceptHandler(AcceptorListener listener)
Constructs a new AcceptHandler with an AcceptorListener that will be notified as new connections arrive.

Parameters:
listener - the listener to be notified of incoming connections
Method Detail

sessionCreated

public void sessionCreated(org.apache.mina.common.IoSession session)
                    throws Exception
As new MINA IoSessions come in, set up a SocketConnection and notify the associated AcceptorListener. A new CompleteMessageFilter instance will be attached to the new connection.

Specified by:
sessionCreated in interface org.apache.mina.common.IoHandler
Overrides:
sessionCreated in class org.apache.mina.common.IoHandlerAdapter
Parameters:
session - the newly created IoSession
Throws:
Exception

Project Darkstar, Version 0.9.9.3
2013-07-29 20:47:10

Copyright © 2007-2013 Sun Microsystems, Inc. All rights reserved