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 Addressaddress()Get the address to use when looking for or creating a new client.booleanequals(java.lang.Object o)ExecutionContextexecutionContext()Get theExecutionContextto use when looking for or creating a new client.inthashCode()
-
-
-
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- TheExecutionContextto use forexecutionContext().
-
-
Method Detail
-
address
public Address 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
public ExecutionContext 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
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-