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:ServiceDiscovererEventGet the resolved address which is the subject of this event.- Specified by:
addressin interfaceServiceDiscovererEvent<T>- Returns:
- a resolved address that can be used for connecting.
-
status
Description copied from interface:ServiceDiscovererEventStatusof the event instructing theServiceDiscovererwhat actions to take upon the associatedaddress.- Specified by:
statusin interfaceServiceDiscovererEvent<T>- Returns:
Statusof the associatedServiceDiscovererEvent.address().
-
equals
-
hashCode
public int hashCode() -
toString
-