E
- the address type, for example for TCP transport it's SocketAddress
public 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 GrizzlyFuture<Connection> |
connect() |
boolean |
equals(Object o) |
abstract Object |
getId() |
int |
hashCode() |
protected void |
onConnect(Connection connection,
SingleEndpointPool<E> pool)
The method is called, once new
Connection related to the
Endpoint is established. |
public abstract Object getId()
public abstract GrizzlyFuture<Connection> connect()
protected void onConnect(Connection connection, SingleEndpointPool<E> pool)
Connection
related to the
Endpoint is established.connection
- the Connection
pool
- the pool, to which the Connection
is boundCopyright © 2018 Oracle Corporation. All rights reserved.