Uses of Interface
org.elasticsearch.common.util.concurrent.ThreadContext.StoredContext
-
Packages that use ThreadContext.StoredContext Package Description org.elasticsearch.action.support org.elasticsearch.common.util.concurrent org.elasticsearch.transport -
-
Uses of ThreadContext.StoredContext in org.elasticsearch.action.support
Constructor parameters in org.elasticsearch.action.support with type arguments of type ThreadContext.StoredContext Constructor Description ContextPreservingActionListener(Supplier<ThreadContext.StoredContext> contextSupplier, ActionListener<R> delegate) -
Uses of ThreadContext.StoredContext in org.elasticsearch.common.util.concurrent
Methods in org.elasticsearch.common.util.concurrent that return ThreadContext.StoredContext Modifier and Type Method Description ThreadContext.StoredContextThreadContext. newStoredContext(boolean preserveResponseHeaders)Just likeThreadContext.stashContext()but no default context is set.ThreadContext.StoredContextThreadContext. stashAndMergeHeaders(Map<String,String> headers)Removes the current context and resets a new context that contains a merge of the current headers and the given headers.ThreadContext.StoredContextThreadContext. stashContext()Removes the current context and resets a default context.ThreadContext.StoredContextThreadContext. stashWithOrigin(String origin)Removes the current context and resets a default context marked with as originating from the supplied string.Methods in org.elasticsearch.common.util.concurrent that return types with arguments of type ThreadContext.StoredContext Modifier and Type Method Description Supplier<ThreadContext.StoredContext>ThreadContext. newRestorableContext(boolean preserveResponseHeaders)Returns a supplier that gathers aThreadContext.newStoredContext(boolean)and restores it once the returned supplier is invoked.Supplier<ThreadContext.StoredContext>ThreadContext. wrapRestorable(ThreadContext.StoredContext storedContext)Same asThreadContext.newRestorableContext(boolean)but wraps an existing context to restore.Methods in org.elasticsearch.common.util.concurrent with parameters of type ThreadContext.StoredContext Modifier and Type Method Description Supplier<ThreadContext.StoredContext>ThreadContext. wrapRestorable(ThreadContext.StoredContext storedContext)Same asThreadContext.newRestorableContext(boolean)but wraps an existing context to restore. -
Uses of ThreadContext.StoredContext in org.elasticsearch.transport
Fields in org.elasticsearch.transport declared as ThreadContext.StoredContext Modifier and Type Field Description protected ThreadContext.StoredContextNetworkMessage. storedContextConstructor parameters in org.elasticsearch.transport with type arguments of type ThreadContext.StoredContext Constructor Description ContextRestoreResponseHandler(Supplier<ThreadContext.StoredContext> contextSupplier, TransportResponseHandler<T> delegate)
-