E - the address type, for example for TCP transport it's SocketAddresspublic abstract class Endpoint<E> extends Object
Connection to the endpoint.| Modifier and Type | Class and Description |
|---|---|
static class |
Endpoint.Factory
Convenient Endpoint factory for cases, when user has a
ConnectorHandler and endpoint address. |
| Constructor and Description |
|---|
Endpoint() |
| Modifier and Type | Method and Description |
|---|---|
abstract org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.Connection> |
connect() |
abstract org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.Connection> |
connect(org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.Connection> completionHandler) |
boolean |
equals(Object o) |
abstract Object |
getId() |
int |
hashCode() |
protected void |
onConnect(org.glassfish.grizzly.Connection connection,
SingleEndpointPool<E> pool)
The method is called, once new
Connection related to the
Endpoint is established. |
public abstract Object getId()
public abstract org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.Connection> connect()
public abstract org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.Connection> connect(org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.Connection> completionHandler)
protected void onConnect(org.glassfish.grizzly.Connection connection,
SingleEndpointPool<E> pool)
Connection related to the
Endpoint is established.connection - the Connectionpool - the pool, to which the Connection is boundCopyright © 2018 Oracle Corporation. All Rights Reserved.