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.boolean
Get theExecutionContext
to use when looking for or creating a new client.int
hashCode()
-
Constructor Details
-
DefaultGroupKey
Create a new instance.- Parameters:
address
- The address of the remote peer to connect to.executionContext
- TheExecutionContext
to use forexecutionContext()
.
-
-
Method Details
-
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. -
executionContext
Description copied from interface:GroupKey
Get theExecutionContext
to use when looking for or creating a new client.- Specified by:
executionContext
in interfaceGroupKey<Address>
- Returns:
- the
ExecutionContext
to use when looking for or creating a new client.
-
equals
-
hashCode
public int hashCode()
-