Class Endpoint<E>
java.lang.Object
org.glassfish.grizzly.connectionpool.Endpoint<E>
- Type Parameters:
E- the address type, for example for TCP transport it'sSocketAddress
- Direct Known Subclasses:
EndpointKey
The abstract class, which describes a pool endpoint and has a method, which
creates new
Connection to the endpoint.- Author:
- Alexey Stashok
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConvenient Endpoint factory for cases, when user has aConnectorHandlerand endpoint address. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract 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) booleanabstract ObjectgetId()inthashCode()protected voidonConnect(org.glassfish.grizzly.Connection connection, SingleEndpointPool<E> pool) The method is called, once newConnectionrelated to the Endpoint is established.
-
Constructor Details
-
Endpoint
public Endpoint()
-
-
Method Details
-
getId
-
connect
public abstract org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.Connection> connect() -
connect
public abstract org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.Connection> connect(org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.Connection> completionHandler) -
onConnect
The method is called, once newConnectionrelated to the Endpoint is established.- Parameters:
connection- theConnectionpool- the pool, to which theConnectionis bound
-
equals
-
hashCode
public int hashCode()
-