Package io.servicetalk.client.api
Class DefaultServiceDiscovererEvent<T>
java.lang.Object
io.servicetalk.client.api.DefaultServiceDiscovererEvent<T>
- Type Parameters:
T
- The type of resolved address.
- All Implemented Interfaces:
ServiceDiscovererEvent<T>
public final class DefaultServiceDiscovererEvent<T>
extends Object
implements ServiceDiscovererEvent<T>
Default implementation of
ServiceDiscovererEvent
.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.servicetalk.client.api.ServiceDiscovererEvent
ServiceDiscovererEvent.Status
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultServiceDiscovererEvent
(T address, ServiceDiscovererEvent.Status status) Create a new instance. -
Method Summary
-
Constructor Details
-
Method Details
-
address
Description copied from interface:ServiceDiscovererEvent
Get the resolved address which is the subject of this event.- Specified by:
address
in interfaceServiceDiscovererEvent<T>
- Returns:
- a resolved address that can be used for connecting.
-
status
Description copied from interface:ServiceDiscovererEvent
Status
of the event instructing theServiceDiscoverer
what actions to take upon the associatedaddress
.- Specified by:
status
in interfaceServiceDiscovererEvent<T>
- Returns:
Status
of the associatedServiceDiscovererEvent.address()
.
-
equals
-
hashCode
public int hashCode() -
toString
-