Class KubernetesServiceInstanceList

java.lang.Object
io.micronaut.kubernetes.discovery.KubernetesServiceInstanceList
All Implemented Interfaces:
io.micronaut.discovery.ServiceInstanceList

@Singleton @Requires(env="k8s") public class KubernetesServiceInstanceList extends Object implements io.micronaut.discovery.ServiceInstanceList
A ServiceInstanceList implementation for Kubernetes.
Since:
1.0.0
Author:
Álvaro Sánchez-Mariscal
  • Constructor Details

    • KubernetesServiceInstanceList

      public KubernetesServiceInstanceList(io.kubernetes.client.util.ClientBuilder clientBuilder)
      Parameters:
      clientBuilder - The ClientBuilder.
  • Method Details

    • getID

      public String getID()
      Specified by:
      getID in interface io.micronaut.discovery.ServiceInstanceList
    • getInstances

      public List<io.micronaut.discovery.ServiceInstance> getInstances()
      Specified by:
      getInstances in interface io.micronaut.discovery.ServiceInstanceList