com.sun.sgs.impl.io
Class SocketConnector.ConnectorConnListner

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


Constructor Summary
SocketConnector.ConnectorConnListner(ConnectionListener listener)
          Constructs a new ConnectionHandler with an ConnectionListener that will handle events for the new connection.
 
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 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

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
Method Detail

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

Project Darkstar, Version 0.9.10.1
2013-07-29 21:03:34

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