Class MicroserviceRepositoryBuilder
java.lang.Object
com.cumulocity.microservice.subscription.repository.MicroserviceRepositoryBuilder
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplicationKey
(String applicationKey) applicationName
(String applicationName) build()
creates MicroserviceRepository implementation according to microservice isolation env variable: - when C8Y.microservice.isolation is defined, then microservice runs on new SDK (8.18+) in kubernetes - when C8Y.microservice.isolation not defined, then microservice should support old SDK (before 8.18)connector
(CredentialsSwitchingPlatform connector) environment
(org.springframework.core.env.Environment environment)
-
Field Details
-
MICROSERVICE_ISOLATION_ENV_NAME
- See Also:
-
-
Method Details
-
build
creates MicroserviceRepository implementation according to microservice isolation env variable: - when C8Y.microservice.isolation is defined, then microservice runs on new SDK (8.18+) in kubernetes - when C8Y.microservice.isolation not defined, then microservice should support old SDK (before 8.18)- Returns:
- microservice repository instance
-
microserviceRepositoryBuilder
-
baseUrl
-
tenant
-
username
-
applicationName
-
applicationKey
-
password
-
connector
-
environment
public MicroserviceRepositoryBuilder environment(org.springframework.core.env.Environment environment)
-