public static interface Transport.Connection
extends java.io.Closeable
DiscoveryNode
Modifier and Type | Method and Description |
---|---|
default java.lang.Object |
getCacheKey()
Returns a key that this connection can be cached on.
|
DiscoveryNode |
getNode()
The node this connection is associated with
|
default Version |
getVersion()
Returns the version of the node this connection was established with.
|
void |
sendRequest(long requestId,
java.lang.String action,
TransportRequest request,
TransportRequestOptions options)
Sends the request to the node this connection is associated with
|
DiscoveryNode getNode()
void sendRequest(long requestId, java.lang.String action, TransportRequest request, TransportRequestOptions options) throws java.io.IOException, TransportException
NodeNotConnectedException
- if the given node is not connectedjava.io.IOException
TransportException
default Version getVersion()
default java.lang.Object getCacheKey()