Interface Transport.Connection

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable
    All Known Implementing Classes:
    TcpTransport.NodeChannels
    Enclosing interface:
    Transport

    public static interface Transport.Connection
    extends java.io.Closeable
    A unidirectional connection to a DiscoveryNode
    • Method Detail

      • getNode

        DiscoveryNode getNode()
        The node this connection is associated with
      • getVersion

        default Version getVersion()
        Returns the version of the node this connection was established with.
      • getCacheKey

        default java.lang.Object getCacheKey()
        Returns a key that this connection can be cached on. Delegating subclasses must delegate method call to the original connection.