Class DefaultGroupKey<Address>

java.lang.Object
io.servicetalk.client.api.DefaultGroupKey<Address>
Type Parameters:
Address - The type of address used by clients (typically this is unresolved address).
All Implemented Interfaces:
GroupKey<Address>

public final class DefaultGroupKey<Address> extends Object implements GroupKey<Address>
A default implementation of GroupKey.
  • Constructor Details

  • Method Details

    • address

      public Address address()
      Description copied from interface: GroupKey
      Get the address to use when looking for or creating a new client. This address is typically unresolved, but may not be a requirement depending upon configuration.
      Specified by:
      address in interface GroupKey<Address>
      Returns:
      the address to use when looking for or creating a new client. This address is typically unresolved, but may not be a requirement depending upon configuration.
    • executionContext

      public ExecutionContext<?> executionContext()
      Description copied from interface: GroupKey
      Get the ExecutionContext to use when looking for or creating a new client.
      Specified by:
      executionContext in interface GroupKey<Address>
      Returns:
      the ExecutionContext to use when looking for or creating a new client.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object