Package io.servicetalk.client.api
Class DefaultGroupKey<Address>
- java.lang.Object
-
- io.servicetalk.client.api.DefaultGroupKey<Address>
-
-
Constructor Summary
Constructors Constructor Description DefaultGroupKey(Address address, ExecutionContext executionContext)
Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Address
address()
Get the address to use when looking for or creating a new client.boolean
equals(java.lang.Object o)
ExecutionContext
executionContext()
Get theExecutionContext
to use when looking for or creating a new client.int
hashCode()
-
-
-
Constructor Detail
-
DefaultGroupKey
public DefaultGroupKey(Address address, ExecutionContext executionContext)
Create a new instance.- Parameters:
address
- The address of the remote peer to connect to.executionContext
- TheExecutionContext
to use forexecutionContext()
.
-
-
Method Detail
-
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.
-
executionContext
public ExecutionContext 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
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-