public abstract class AbstractServiceTenantContextProvider<T extends TenantContext> extends AbstractTenantContextProvider<T>
| Constructor and Description |
|---|
AbstractServiceTenantContextProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected TenantContext |
fetchTenantContext(String tenantId)
Fetches the generic
TenantContext based on the supplied tenantId. |
protected abstract Optional<BraveClientInterceptor> |
getBraveClientInterceptor()
If a service supports Zipkin tracing using the reference Brave client
allow it to provide client interceptors so we have a full trace log.
|
protected abstract Optional<URI> |
getFallbackServiceEndpoint()
Returns the fallback service url to use when contacting TCS when the primary url is unavailable
|
protected abstract URI |
getServiceEndpoint()
Returns the primary service url to use when contacting TCS
|
protected abstract String |
getTCSKey()
Returns the specific for the product TCS key.
|
decorate, getTenantContext, setProvisioningTenantContext, setTenantIdpublic AbstractServiceTenantContextProvider()
protected TenantContext fetchTenantContext(String tenantId) throws TenantContextException
AbstractTenantContextProviderTenantContext based on the supplied tenantId.fetchTenantContext in class AbstractTenantContextProvider<T extends TenantContext>tenantId - the tenant IdTenantContextExceptionprotected abstract Optional<BraveClientInterceptor> getBraveClientInterceptor()
protected abstract String getTCSKey()
protected abstract URI getServiceEndpoint()
Copyright © 2016 Atlassian. All rights reserved.