Endpoint implementation.
The EndpointKey contains the endpoint address, that will be used by a ConnectorHandler passed to
MultiEndpointPool to establish a new client-side org.glassfish.grizzly.Connection . Additionally, the
EndpointKey contains an internal key object (getInternalKey()) that is used in the
equals(java.lang.Object) and hashCode() methods.
| Modifier and Type | Field and Description |
|---|---|
| private final ConnectorHandler | |
| private final Object | |
| private final E | |
| private final E |
| Access | Constructor and Description |
|---|---|
| public | EndpointKey(final Object
the internal key to be used in internalKey, final E equals(java. and hashCode() methodsthe endpoint address, that will be used by a endpointAddress)ConnectorHandler passed to
MultiEndpointPool to establish new client-side org.Construct EndpointKey based on the given internalKey and endpoint. |
| public | EndpointKey(final Object
the internal key to be used in internalKey, final E equals(java. and hashCode() methodsthe endpoint address, that will be used by a endpointAddress, final E ConnectorHandler passed to
MultiEndpointPool to establish new client-side org.the local address that will be used by the localEndpointAddress)ConnectorHandler to bind the local
side of the outgoing connection.Construct EndpointKey based on the given internalKey, endpoint, and local endpoint. |
| public | EndpointKey(final Object
the internal key to be used in internalKey, final E equals(java. and hashCode() methodsthe endpoint address, that will be used by a endpointAddress, final ConnectorHandler<E> ConnectorHandler passed to
MultiEndpointPool to establish new client-side org.customized connectorHandler)ConnectorHandler for this endpointConstruct EndpointKey based on the given internalKey, endpoint, and |
| public | EndpointKey(final Object
the internal key to be used in internalKey, final E equals(java. and hashCode() methodsthe endpoint address, that will be used by a endpointAddress, final E ConnectorHandler passed to
MultiEndpointPool to establish new client-side org.the local address that will be used by the localEndpointAddress, final ConnectorHandler<E> ConnectorHandler to bind the local
side of the outgoing connection.customized connectorHandler)ConnectorHandler for this endpoint
|
| Modifier and Type | Method and Description |
|---|---|
| public GrizzlyFuture | |
| public ConnectorHandler | getConnectorHandler()
Returns: a customized |
| public E | getEndpoint()
Returns: the endpoint address, used by a |
| public Object | |
| public Object | |
| public E | getLocalEndpoint()
Returns: the local endpoint address that be bound to when making the outgoing connection. |
| public String |
| connectorHandler | back to summary |
|---|---|
| private final ConnectorHandler<E> connectorHandler | |
| internalKey | back to summary |
|---|---|
| private final Object internalKey | |
| localEndpointAddress | back to summary |
|---|---|
| private final E localEndpointAddress | |
| targetEndpointAddress | back to summary |
|---|---|
| private final E targetEndpointAddress | |
| EndpointKey | back to summary |
|---|---|
| public EndpointKey(final Object internalKey, final E endpointAddress) Construct EndpointKey based on the given internalKey and endpoint.
| |
| EndpointKey | back to summary |
|---|---|
| public EndpointKey(final Object internalKey, final E endpointAddress, final E localEndpointAddress) Construct EndpointKey based on the given internalKey, endpoint, and local endpoint.
| |
| EndpointKey | back to summary |
|---|---|
| public EndpointKey(final Object internalKey, final E endpointAddress, final ConnectorHandler<E> connectorHandler) Construct EndpointKey based on the given internalKey, endpoint, and
| |
| EndpointKey | back to summary |
|---|---|
public EndpointKey(final Object internalKey, final E endpointAddress, final E localEndpointAddress, final ConnectorHandler<E> connectorHandler)
| |
| connect | back to summary |
|---|---|
| public GrizzlyFuture Implements abstract org.
| |
| getConnectorHandler | back to summary |
|---|---|
public ConnectorHandler
| |
| getEndpoint | back to summary |
|---|---|
public E getEndpoint()
| |
| getId | back to summary |
|---|---|
| public Object getId() Implements abstract org.
| |
| getInternalKey | back to summary |
|---|---|
public Object getInternalKey()
| |
| getLocalEndpoint | back to summary |
|---|---|
public E getLocalEndpoint()
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |