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.
Provider interface to obtain a
ServiceInstance to look up the Vault service.- Since:
- 1.1
- Author:
- Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.cloud.client.ServiceInstancegetVaultServerInstance(String serviceId) LookupServiceInstancebyserviceId.
-
Method Details
-
getVaultServerInstance
LookupServiceInstancebyserviceId.- Parameters:
serviceId- the service Id.- Returns:
ServiceInstancefor the givenserviceId.- Throws:
IllegalStateException- if no service withserviceIdwas found.
-