public static int hashCode(User ticket, String serviceName, Address address) {
    return (address.hashCode()
      + PRIME * (PRIME * serviceName.hashCode() ^ (ticket == null ? 0 : ticket.hashCode())));
  }
This class holds the address and the user ticket, etc. The client connections to servers are
uniquely identified by &lt;remoteAddress, ticket, serviceName&gt;
hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/ConnectionId.java