com.sun.sgs.impl.io
Class SocketConnector.ConnectorConnListner
java.lang.Object
org.apache.mina.common.IoHandlerAdapter
com.sun.sgs.impl.io.SocketConnectionListener
com.sun.sgs.impl.io.SocketConnector.ConnectorConnListner
- All Implemented Interfaces:
- org.apache.mina.common.IoHandler
- Enclosing class:
- SocketConnector
static final class SocketConnector.ConnectorConnListner
- extends SocketConnectionListener
Internal adaptor class to handle events from the connector itself.
|
Method Summary |
(package private) void |
cancel()
If a connection is in progress, but not yet connected,
cancel the pending connection. |
void |
sessionCreated(org.apache.mina.common.IoSession session)
The connection is starting; set the ConnectionListener for it. |
| 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 |
SocketConnector.ConnectorConnListner
SocketConnector.ConnectorConnListner(ConnectionListener listener)
- Constructs a new
ConnectionHandler with an
ConnectionListener that will handle events for the new
connection.
- Parameters:
listener - the ConnectionListener for the completed
connection
cancel
void cancel()
- If a connection is in progress, but not yet connected,
cancel the pending connection.
- Throws:
IllegalStateException - if this connection attempt has
already completed or been cancelled
sessionCreated
public void sessionCreated(org.apache.mina.common.IoSession session)
throws Exception
- The connection is starting; set the ConnectionListener for it.
- 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