Package io.smallrye.stork.api
Interface ServiceDiscovery
public interface ServiceDiscovery
Interface to retrieve the list of all available service instances for a given service.
-
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<List<ServiceInstance>>Retrieves the service instances.default voidinitialize(StorkServiceRegistry stork) Optional initialization.
-
Method Details
-
getServiceInstances
io.smallrye.mutiny.Uni<List<ServiceInstance>> getServiceInstances()Retrieves the service instances.This retrieval is an asynchronous action, thus, the method returns a
Uni- Returns:
- all `ServiceInstance`'s for the service
-
initialize
Optional initialization. This method will be invoked after all service discoveries and load balancers are registered in Stork- Parameters:
stork- the stork instance managing the service.
-