Package io.servicetalk.client.api
Interface ServiceDiscovererEvent<ResolvedAddress>
- Type Parameters:
ResolvedAddress
- the type of address after resolution.
- All Known Subinterfaces:
PartitionedServiceDiscovererEvent<ResolvedAddress>
- All Known Implementing Classes:
DefaultServiceDiscovererEvent
public interface ServiceDiscovererEvent<ResolvedAddress>
Notification from the Service Discovery system that availability for an address has changed.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
Status provided by theServiceDiscoverer
system that guides the actions ofLoadBalancer
upon the boundaddress()
(viaServiceDiscovererEvent
). -
Method Summary
Modifier and TypeMethodDescriptionaddress()
Get the resolved address which is the subject of this event.status()
Status
of the event instructing theServiceDiscoverer
what actions to take upon the associatedaddress
.
-
Method Details
-
address
ResolvedAddress address()Get the resolved address which is the subject of this event.Note: all subsequent events for the same address override its
status()
or any additional meta-data associated with the address.- Returns:
- a resolved address that can be used for connecting.
-
status
ServiceDiscovererEvent.Status status()Status
of the event instructing theServiceDiscoverer
what actions to take upon the associatedaddress
.
-