E - the address type, for example for TCP transport it's SocketAddresspublic abstract class Endpoint<E>
extends java.lang.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(java.lang.Object o) |
abstract java.lang.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 java.lang.Object getId()
public abstract GrizzlyFuture<Connection> connect()
protected void onConnect(Connection connection, SingleEndpointPool<E> pool)
Connection related to the
Endpoint is established.connection - the Connectionpool - the pool, to which the Connection is boundpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2018 Oracle Corporation. All Rights Reserved.