@PublicApi @FunctionalInterface public interface TenantContextProvider<T extends TenantContext>
TenantContext corresponding to the
supplied earlier tenantId via the TenantIdConsumer.setTenantId(String) method. The getTenantContext()
method can be called multiple times while processing the current piece of work.| Modifier and Type | Method and Description |
|---|---|
T |
getTenantContext()
Retrieves the
TenantContext corresponding to the set earlier tenantId. |
T getTenantContext()
TenantContext corresponding to the set earlier tenantId.
If this method is called before/without a previous call to TenantIdConsumer.setTenantId(String), the concrete
TenantContextProvider implementation may choose to return a default TenantContext
or to throw an Exception.Copyright © 2016 Atlassian. All rights reserved.