java.io.Closeable, java.lang.AutoCloseable, Transport.Connectionpublic final class TcpTransport.NodeChannels extends java.lang.Object implements Transport.Connection
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
allChannelsOpen() |
|
TcpChannel |
channel(TransportRequestOptions.Type type) |
|
void |
close() |
|
java.util.List<TcpChannel> |
getChannels() |
|
DiscoveryNode |
getNode() |
The node this connection is associated with
|
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCacheKeypublic Version getVersion()
Transport.ConnectiongetVersion in interface Transport.Connectionpublic java.util.List<TcpChannel> getChannels()
public TcpChannel channel(TransportRequestOptions.Type type)
public boolean allChannelsOpen()
public void close()
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablepublic DiscoveryNode getNode()
Transport.ConnectiongetNode in interface Transport.Connectionpublic void sendRequest(long requestId,
java.lang.String action,
TransportRequest request,
TransportRequestOptions options)
throws java.io.IOException,
TransportException
Transport.ConnectionsendRequest in interface Transport.ConnectionNodeNotConnectedException - if the given node is not connectedjava.io.IOExceptionTransportException