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 aServiceInstanceto look up the Vault service.- Since:
- 1.1
- Author:
- Mark Paluch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.springframework.cloud.client.ServiceInstancegetVaultServerInstance(String serviceId)LookupServiceInstancebyserviceId.
-
-
-
Method Detail
-
getVaultServerInstance
org.springframework.cloud.client.ServiceInstance getVaultServerInstance(String serviceId)
LookupServiceInstancebyserviceId.- Parameters:
serviceId- the service Id.- Returns:
ServiceInstancefor the givenserviceId.- Throws:
IllegalStateException- if no service withserviceIdwas found.
-
-