com.sun.sgs.impl.io
Class SocketAcceptor.AcceptHandler
java.lang.Object
org.apache.mina.common.IoHandlerAdapter
com.sun.sgs.impl.io.SocketConnectionListener
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.
|
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 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 |
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
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
Copyright © 2007-2013 Sun Microsystems, Inc. All rights reserved