Interface VaultServiceInstanceProvider

  • All Known Implementing Classes:
    DiscoveryClientVaultServiceInstanceProvider
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface VaultServiceInstanceProvider
    Provider interface to obtain a ServiceInstance to look up the Vault service.
    Since:
    1.1
    Author:
    Mark Paluch
    • Method Detail

      • getVaultServerInstance

        org.springframework.cloud.client.ServiceInstance getVaultServerInstance​(String serviceId)
        Lookup ServiceInstance by serviceId.
        Parameters:
        serviceId - the service Id.
        Returns:
        ServiceInstance for the given serviceId.
        Throws:
        IllegalStateException - if no service with serviceId was found.