Uses of Class
org.elasticsearch.common.util.concurrent.ThreadContext
-
-
Uses of ThreadContext in org.elasticsearch.action.support
Methods in org.elasticsearch.action.support with parameters of type ThreadContext Modifier and Type Method Description static <R> ContextPreservingActionListener<R>ContextPreservingActionListener. wrapPreservingContext(ActionListener<R> listener, ThreadContext threadContext)Wraps the provided action listener in aContextPreservingActionListenerthat will also copy the response headers when theThreadContext.StoredContextis closed -
Uses of ThreadContext in org.elasticsearch.cluster
Constructors in org.elasticsearch.cluster with parameters of type ThreadContext Constructor Description ClusterStateObserver(ClusterState initialState, ClusterApplierService clusterApplierService, TimeValue timeout, org.apache.logging.log4j.Logger logger, ThreadContext contextHolder)ClusterStateObserver(ClusterState initialState, ClusterService clusterService, TimeValue timeout, org.apache.logging.log4j.Logger logger, ThreadContext contextHolder)ClusterStateObserver(ClusterService clusterService, org.apache.logging.log4j.Logger logger, ThreadContext contextHolder)ClusterStateObserver(ClusterService clusterService, TimeValue timeout, org.apache.logging.log4j.Logger logger, ThreadContext contextHolder) -
Uses of ThreadContext in org.elasticsearch.common.logging
Methods in org.elasticsearch.common.logging with parameters of type ThreadContext Modifier and Type Method Description static voidNodeAndClusterIdStateListener. getAndSetNodeIdAndClusterId(ClusterService clusterService, ThreadContext threadContext)Subscribes for the first cluster state update where nodeId and clusterId is present and sets these values inNodeAndClusterIdConverter.static voidDeprecationLogger. removeThreadContext(ThreadContext threadContext)Remove theThreadContextused to add deprecation headers to network responses.static voidDeprecationLogger. setThreadContext(ThreadContext threadContext)Set theThreadContextused to add deprecation headers to network responses.Method parameters in org.elasticsearch.common.logging with type arguments of type ThreadContext Modifier and Type Method Description StringDeprecationLogger. getXOpaqueId(Set<ThreadContext> threadContexts) -
Uses of ThreadContext in org.elasticsearch.common.util.concurrent
Methods in org.elasticsearch.common.util.concurrent with parameters of type ThreadContext Modifier and Type Method Description voidListenableFuture. addListener(ActionListener<V> listener, ExecutorService executor, ThreadContext threadContext)Adds a listener to this future.static EsThreadPoolExecutorEsExecutors. newAutoQueueFixed(String name, int size, int initialQueueCapacity, int minQueueSize, int maxQueueSize, int frameSize, TimeValue targetedResponseTime, ThreadFactory threadFactory, ThreadContext contextHolder)Return a new executor that will automatically adjust the queue size based on queue throughput.static EsThreadPoolExecutorEsExecutors. newFixed(String name, int size, int queueCapacity, ThreadFactory threadFactory, ThreadContext contextHolder)static EsThreadPoolExecutorEsExecutors. newScaling(String name, int min, int max, long keepAliveTime, TimeUnit unit, ThreadFactory threadFactory, ThreadContext contextHolder)static PrioritizedEsThreadPoolExecutorEsExecutors. newSinglePrioritizing(String name, ThreadFactory threadFactory, ThreadContext contextHolder, ScheduledExecutorService timer)Constructors in org.elasticsearch.common.util.concurrent with parameters of type ThreadContext Constructor Description AsyncIOProcessor(org.apache.logging.log4j.Logger logger, int queueSize, ThreadContext threadContext)PrioritizedEsThreadPoolExecutor(String name, int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, ThreadFactory threadFactory, ThreadContext contextHolder, ScheduledExecutorService timer) -
Uses of ThreadContext in org.elasticsearch.http
Methods in org.elasticsearch.http with parameters of type ThreadContext Modifier and Type Method Description voidHttpServerTransport.Dispatcher. dispatchBadRequest(RestChannel channel, ThreadContext threadContext, Throwable cause)Dispatches a bad request.voidHttpServerTransport.Dispatcher. dispatchRequest(RestRequest request, RestChannel channel, ThreadContext threadContext)Dispatches theRestRequestto the relevant request handler or responds to the given rest channel directly if the request can't be handled by any request handler. -
Uses of ThreadContext in org.elasticsearch.index.shard
Constructors in org.elasticsearch.index.shard with parameters of type ThreadContext Constructor Description RefreshListeners(IntSupplier getMaxRefreshListeners, Runnable forceRefresh, Executor listenerExecutor, org.apache.logging.log4j.Logger logger, ThreadContext threadContext, MeanMetric refreshMetric) -
Uses of ThreadContext in org.elasticsearch.ingest
Fields in org.elasticsearch.ingest declared as ThreadContext Modifier and Type Field Description ThreadContextProcessor.Parameters. threadContextAllows processors to read headers set byActionFilterinstances that have run prior to in ingest.Constructors in org.elasticsearch.ingest with parameters of type ThreadContext Constructor Description Parameters(Environment env, ScriptService scriptService, AnalysisRegistry analysisRegistry, ThreadContext threadContext, LongSupplier relativeTimeSupplier, BiFunction<Long,Runnable,Scheduler.ScheduledCancellable> scheduler, IngestService ingestService, Client client, Consumer<Runnable> genericExecutor) -
Uses of ThreadContext in org.elasticsearch.plugins
Methods in org.elasticsearch.plugins with parameters of type ThreadContext Modifier and Type Method Description default UnaryOperator<RestHandler>ActionPlugin. getRestHandlerWrapper(ThreadContext threadContext)Returns a function used to wrap each rest request before handling the request.default List<TransportInterceptor>NetworkPlugin. getTransportInterceptors(NamedWriteableRegistry namedWriteableRegistry, ThreadContext threadContext)Returns a list ofTransportInterceptorinstances that are used to intercept incoming and outgoing transport (inter-node) requests. -
Uses of ThreadContext in org.elasticsearch.rest
Methods in org.elasticsearch.rest with parameters of type ThreadContext Modifier and Type Method Description voidRestController. dispatchBadRequest(RestChannel channel, ThreadContext threadContext, Throwable cause)voidRestController. dispatchRequest(RestRequest request, RestChannel channel, ThreadContext threadContext) -
Uses of ThreadContext in org.elasticsearch.threadpool
Methods in org.elasticsearch.threadpool that return ThreadContext Modifier and Type Method Description ThreadContextThreadPool. getThreadContext() -
Uses of ThreadContext in org.elasticsearch.transport
Fields in org.elasticsearch.transport declared as ThreadContext Modifier and Type Field Description protected ThreadContextNetworkMessage. threadContext
-