|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.client.comm.ClientConnector
public abstract class ClientConnector
An abstract mechanism for actively initiating a ClientConnection.
| Constructor Summary | |
|---|---|
protected |
ClientConnector()
Only allow construction by subclasses. |
| Method Summary | |
|---|---|
abstract void |
cancel()
Cancels a pending connect operation on this ClientConnecton. |
abstract void |
connect(ClientConnectionListener listener)
Actively initates a connection to the target remote address. |
static ClientConnector |
create(Properties properties)
Creates a ClientConnector according to the given
properties. |
protected static void |
setConnectorFactory(ClientConnectorFactory factory)
Sets the ClientConnectorFactory that will be used
to create new ClientConnectors. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ClientConnector()
| Method Detail |
|---|
public static ClientConnector create(Properties properties)
ClientConnector according to the given
properties.
properties - which affect the implementation of
ClientConnector returned
ClientConnectorprotected static void setConnectorFactory(ClientConnectorFactory factory)
ClientConnectorFactory that will be used
to create new ClientConnectors.
factory - the factory to create new ClientConnectors
public abstract void connect(ClientConnectionListener listener)
throws IOException
ClientConnectionListener.connected(com.sun.sgs.impl.client.comm.ClientConnection)
will be called asynchronously on the listener upon successful
connection, or ClientConnectionListener.disconnected(boolean, byte[]) if it
fails.
listener - the listener for all IO events on the
connection, including the result of the connection attempt
IOException - if an IO error occurs synchronously
SecurityException - if a security manager has been installed
and it does not permit access to the remote endpoint
public abstract void cancel()
throws IOException
ClientConnecton.
IOException - if an IO error occurs synchronously
|
Project Darkstar, Version 0.9.9.2 2013-07-29 20:45:08 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||