Class ConsulServiceDiscovery

java.lang.Object
io.smallrye.stork.impl.CachingServiceDiscovery
io.smallrye.stork.servicediscovery.consul.ConsulServiceDiscovery
All Implemented Interfaces:
io.smallrye.stork.api.ServiceDiscovery

public class ConsulServiceDiscovery extends io.smallrye.stork.impl.CachingServiceDiscovery
A service discovery implementation retrieving services from Consul.
  • Field Summary

    Fields inherited from class io.smallrye.stork.impl.CachingServiceDiscovery

    DEFAULT_REFRESH_INTERVAL, REFRESH_PERIOD, refreshPeriod
  • Method Summary

    Modifier and Type
    Method
    Description
    io.smallrye.mutiny.Uni<List<io.smallrye.stork.api.ServiceInstance>>
    fetchNewServiceInstances(List<io.smallrye.stork.api.ServiceInstance> previousInstances)
     
    protected static Integer
    getPort(String name, String value)
     

    Methods inherited from class io.smallrye.stork.impl.CachingServiceDiscovery

    cache, getServiceInstances

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.smallrye.stork.api.ServiceDiscovery

    initialize
  • Method Details

    • fetchNewServiceInstances

      public io.smallrye.mutiny.Uni<List<io.smallrye.stork.api.ServiceInstance>> fetchNewServiceInstances(List<io.smallrye.stork.api.ServiceInstance> previousInstances)
      Specified by:
      fetchNewServiceInstances in class io.smallrye.stork.impl.CachingServiceDiscovery
    • getPort

      protected static Integer getPort(String name, String value)