public interface NetworkPlugin
| Modifier and Type | Method and Description |
|---|---|
default java.util.Map<java.lang.String,java.util.function.Supplier<HttpServerTransport>> |
getHttpTransports(Settings settings,
ThreadPool threadPool,
BigArrays bigArrays,
CircuitBreakerService circuitBreakerService,
NamedWriteableRegistry namedWriteableRegistry,
NamedXContentRegistry xContentRegistry,
NetworkService networkService)
Returns a map of
HttpServerTransport suppliers. |
default java.util.List<TransportInterceptor> |
getTransportInterceptors(ThreadContext threadContext)
Returns a list of
TransportInterceptor instances that are used to intercept incoming and outgoing
transport (inter-node) requests. |
default java.util.Map<java.lang.String,java.util.function.Supplier<Transport>> |
getTransports(Settings settings,
ThreadPool threadPool,
BigArrays bigArrays,
CircuitBreakerService circuitBreakerService,
NamedWriteableRegistry namedWriteableRegistry,
NetworkService networkService)
Returns a map of
Transport suppliers. |
default java.util.List<TransportInterceptor> getTransportInterceptors(ThreadContext threadContext)
TransportInterceptor instances that are used to intercept incoming and outgoing
transport (inter-node) requests. This must not return nullthreadContext - a ThreadContext of the current nodes or clients ThreadPool that can be used to set additional
headers in the interceptorsdefault java.util.Map<java.lang.String,java.util.function.Supplier<Transport>> getTransports(Settings settings, ThreadPool threadPool, BigArrays bigArrays, CircuitBreakerService circuitBreakerService, NamedWriteableRegistry namedWriteableRegistry, NetworkService networkService)
Transport suppliers.
See NetworkModule.TRANSPORT_TYPE_KEY to configure a specific implementation.default java.util.Map<java.lang.String,java.util.function.Supplier<HttpServerTransport>> getHttpTransports(Settings settings, ThreadPool threadPool, BigArrays bigArrays, CircuitBreakerService circuitBreakerService, NamedWriteableRegistry namedWriteableRegistry, NamedXContentRegistry xContentRegistry, NetworkService networkService)
HttpServerTransport suppliers.
See NetworkModule.HTTP_TYPE_SETTING to configure a specific implementation.