Class TenantThreadContextListener
java.lang.Object
com.sap.cloud.sdk.cloudplatform.tenant.TenantThreadContextListener
- All Implemented Interfaces:
ThreadContextListener,Comparable<ThreadContextListener>
Implementation of
ThreadContextListener that ensures the correct initialization of Tenants when
working with non-container managed threads on all supported Cloud platforms.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sap.cloud.sdk.cloudplatform.thread.ThreadContextListener
ThreadContextListener.DefaultPriorities -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.TenantThreadContextListener(Tenant tenant) Constructor for providing aTenantto be returned by this listener. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sap.cloud.sdk.cloudplatform.thread.ThreadContextListener
beforeInitialize, compareTo
-
Field Details
-
PROPERTY_TENANT
The ThreadContext key.
-
-
Constructor Details
-
Method Details
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceThreadContextListener
-
afterInitialize
- Specified by:
afterInitializein interfaceThreadContextListener
-