public class EndpointKey<E> extends Object
MultiEndpointPool
.
The EndpointKey contains the endpoint address, that will be used by
a ConnectorHandler
passed to MultiEndpointPool
to establish a
new client-side Connection
.
Additionally, the EndpointKey contains an internal key object
(getInternalKey()
) that is used in the equals(java.lang.Object)
and hashCode()
methods.Constructor and Description |
---|
EndpointKey(Object internalKey,
E endpoint)
Construct EndpointKey based on the given internalKey and endpoint.
|
EndpointKey(Object internalKey,
E endpoint,
ConnectorHandler<E> connectorHandler)
Construct EndpointKey based on the given internalKey, endpoint, and
ConnectorHandler . |
EndpointKey(Object internalKey,
E endpoint,
E localEndpoint)
Construct EndpointKey based on the given internalKey, endpoint,
and local endpoint.
|
EndpointKey(Object internalKey,
E endpoint,
E localEndpoint,
ConnectorHandler<E> connectorHandler) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ConnectorHandler<E> |
getConnectorHandler()
Returns a customized
ConnectorHandler , which will be used to
create Connection s to this endpoint. |
E |
getEndpoint()
Returns the endpoint address, used by a
ConnectorHandler passed
to MultiEndpointPool to establish new client-side Connection |
Object |
getInternalKey()
Returns the internal key used in
equals(java.lang.Object)
and hashCode() methods |
E |
getLocalEndpoint() |
int |
hashCode() |
String |
toString() |
public EndpointKey(Object internalKey, E endpoint)
internalKey
- the internal key to be used in equals(java.lang.Object)
and hashCode()
methodsendpoint
- the endpoint address, that will be used by
a ConnectorHandler
passed to MultiEndpointPool
to establish new client-side Connection
public EndpointKey(Object internalKey, E endpoint, E localEndpoint)
internalKey
- the internal key to be used in equals(java.lang.Object)
and hashCode()
methodsendpoint
- the endpoint address, that will be used by
a ConnectorHandler
passed to MultiEndpointPool
to establish new client-side Connection
localEndpoint
- the local address that will be used by the
ConnectorHandler
to bind the local side of
the outgoing connection.public EndpointKey(Object internalKey, E endpoint, ConnectorHandler<E> connectorHandler)
ConnectorHandler
.internalKey
- the internal key to be used in equals(java.lang.Object)
and hashCode()
methodsendpoint
- the endpoint address, that will be used by
a ConnectorHandler
passed to MultiEndpointPool
to establish new client-side Connection
connectorHandler
- customized ConnectorHandler
for this endpointpublic EndpointKey(Object internalKey, E endpoint, E localEndpoint, ConnectorHandler<E> connectorHandler)
internalKey
- the internal key to be used in equals(java.lang.Object)
and hashCode()
methodsendpoint
- the endpoint address, that will be used by
a ConnectorHandler
passed to MultiEndpointPool
to establish new client-side Connection
localEndpoint
- the local address that will be used by the
ConnectorHandler
to bind the local side of
the outgoing connection.connectorHandler
- customized ConnectorHandler
for this endpointpublic Object getInternalKey()
equals(java.lang.Object)
and hashCode()
methodspublic E getEndpoint()
ConnectorHandler
passed
to MultiEndpointPool
to establish new client-side Connection
public E getLocalEndpoint()
public ConnectorHandler<E> getConnectorHandler()
ConnectorHandler
, which will be used to
create Connection
s to this endpoint.Copyright © 2014 Oracle Corporation. All rights reserved.