Top Description Methods
org.glassfish.grizzly

public Interface ConnectorHandler<E>

Known Direct Subinterfaces
org.glassfish.grizzly.SocketConnectorHandler
Imports
java.util.concurrent.Future

Client side connector handler API. ConnectorHandler is responsible for creating and initializing Connection, and optionally connect it to a specific local/remote address.
Author
Alexey Stashok

Method Summary

Modifier and TypeMethod and Description
public Future<Connection<L>>

Returns:

Future of connect operation, which could be used to get resulting Connection
connect
(E
remote address to connect to
remoteAddress
)

Creates, initializes and establishes Connection to the specific remoteAddress.

public void
connect(E
remote address to connect to
remoteAddress
,
CompletionHandler<Connection<L>> completionHandler)

Creates, initializes and establishes Connection to the specific remoteAddress.

public Future<Connection<L>>

Returns:

Future of connect operation, which could be used to get resulting Connection
connect
(E
remote address to connect to
remoteAddress
,
E
local address to bind a Connection to
localAddress
)

Creates, initializes Connection, binds it to the specific local and remote remoteAddress.

public void
connect(E
remote address to connect to
remoteAddress
,
E
local address to bind a Connection to
localAddress
,
CompletionHandler<Connection<L>> completionHandler)

Creates, initializes Connection, binds it to the specific local and remote remoteAddress.

Method Detail

connectback to summary
public Future<Connection<L>> connect(E remoteAddress)

Creates, initializes and establishes Connection to the specific remoteAddress.

Parameters
remoteAddress:E

remote address to connect to

Returns:Future<Connection<L>>

Future of connect operation, which could be used to get resulting Connection

connectback to summary
public void connect(E remoteAddress, CompletionHandler<Connection<L>> completionHandler)

Creates, initializes and establishes Connection to the specific remoteAddress.

Parameters
remoteAddress:E

remote address to connect to

completionHandler:CompletionHandler<Connection<L>>

CompletionHandler

connectback to summary
public Future<Connection<L>> connect(E remoteAddress, E localAddress)

Creates, initializes Connection, binds it to the specific local and remote remoteAddress.

Parameters
remoteAddress:E

remote address to connect to

localAddress:E

local address to bind a Connection to

Returns:Future<Connection<L>>

Future of connect operation, which could be used to get resulting Connection

connectback to summary
public void connect(E remoteAddress, E localAddress, CompletionHandler<Connection<L>> completionHandler)

Creates, initializes Connection, binds it to the specific local and remote remoteAddress.

Parameters
remoteAddress:E

remote address to connect to

localAddress:E

local address to bind a Connection to

completionHandler:CompletionHandler<Connection<L>>

CompletionHandler