Package io.servicetalk.client.api
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>
A default implementation of
GroupKey.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultGroupKey(Address address, ExecutionContext<?> executionContext) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionaddress()Get the address to use when looking for or creating a new client.booleanGet theExecutionContextto use when looking for or creating a new client.inthashCode()
-
Constructor Details
-
DefaultGroupKey
Create a new instance.- Parameters:
address- The address of the remote peer to connect to.executionContext- TheExecutionContextto use forexecutionContext().
-
-
Method Details
-
address
Description copied from interface:GroupKeyGet 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
Description copied from interface:GroupKeyGet theExecutionContextto use when looking for or creating a new client.- Specified by:
executionContextin interfaceGroupKey<Address>- Returns:
- the
ExecutionContextto use when looking for or creating a new client.
-
equals
-
hashCode
public int hashCode()
-