Client.ConnectionId (Apache Hadoop Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.ipc, class: Client, class: ConnectionId

Package org.apache.hadoop.ipc

# Class Client.ConnectionId

java.lang.Object
org.apache.hadoop.ipc.Client.ConnectionId

Enclosing class:
  Client

@LimitedPrivate({"HDFS","MapReduce"}) @Evolving public static class Client.ConnectionId extends Object
This class holds the address and the user ticket. The client connections to servers are uniquely identified by <remoteAddress, protocol, ticket>

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ConnectionId(InetSocketAddress address, Class<?> protocol, UserGroupInformation ticket, int rpcTimeout, RetryPolicy connectionRetryPolicy, Configuration conf)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `equals(Object obj)`
  `int`
  `getMaxRetriesOnSasl()`
  `int`
  `getMaxRetriesOnSocketTimeouts()`
  `int`
  `hashCode()`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### ConnectionId

    public ConnectionId(InetSocketAddress address, Class<?> protocol, UserGroupInformation ticket, int rpcTimeout, RetryPolicy connectionRetryPolicy, Configuration conf)

- ## Method Details

  - ### getMaxRetriesOnSasl

    public int getMaxRetriesOnSasl()

  - ### getMaxRetriesOnSocketTimeouts

    public int getMaxRetriesOnSocketTimeouts()
    Returns:
      max connection retries on socket time outs

  - ### equals

    public boolean equals(Object obj)
    Overrides:
      `equals` in class `Object`

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`