com.sun.sgs.client.lightweight
Class LightweightConnector
java.lang.Object
com.sun.sgs.client.lightweight.LightweightConnector
class LightweightConnector
- extends Object
A simple class that handles connections to the server. This is effectively
nothing more than a pool of connections with a handler for incoming
messages from the server.
|
Constructor Summary |
LightweightConnector()
Creates an instance of LightweightConnector which in
turn will try to create an endpoint and, if successful, start a
new thread for handling incoming messages. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LightweightConnector
LightweightConnector()
throws IOException
- Creates an instance of
LightweightConnector which in
turn will try to create an endpoint and, if successful, start a
new thread for handling incoming messages.
- Throws:
IOException
addConnection
SocketChannel addConnection(String host,
int port,
LightweightClient client)
throws IOException
- Tries to establish a connection to the given server, using the
given callback interfaces for notifications of incoming messages.
- Throws:
IOException
Copyright © 2007-2013 Sun Microsystems, Inc. All rights reserved