public class HttpClientsThreadContextListener extends Object implements ThreadContextListener
ThreadContextListener that enables the correct use of Destinations when working
with non-container managed threads on all supported Cloud platforms. In particular, it initializes a
HttpClient cache that is maintained per destination.ThreadContextListener.DefaultPriorities| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_HTTP_CLIENTS
The ThreadContext key.
|
| Constructor and Description |
|---|
HttpClientsThreadContextListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeDestroy(ThreadContext threadContext,
ThreadContext parentThreadContext) |
void |
beforeInitialize(ThreadContext threadContext,
ThreadContext parentThreadContext) |
int |
getPriority() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterDestroy, afterInitialize, compareTopublic static final String PROPERTY_HTTP_CLIENTS
public int getPriority()
getPriority in interface ThreadContextListenerpublic void beforeInitialize(@Nonnull ThreadContext threadContext, @Nullable ThreadContext parentThreadContext)
beforeInitialize in interface ThreadContextListenerpublic void beforeDestroy(@Nonnull ThreadContext threadContext, @Nullable ThreadContext parentThreadContext)
beforeDestroy in interface ThreadContextListenerCopyright © 2021 SAP SE. All rights reserved.