Package com.linkedin.alpini.router.impl
Interface Router.Builder
- All Known Implementing Classes:
Router4
- Enclosing interface:
- Router
public static interface Router.Builder
-
Field Summary
Modifier and TypeFieldDescriptionstatic final long
static final long
static final int
static final long
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> Router.Builder
addBootstrapFilter
(Function<T, T> function) appWorkerChannelMaxMemorySize
(long maxChannelMemorySize) appWorkerCorePoolSize
(int corePoolSize) appWorkerKeepAliveSeconds
(long appWorkerKeepAliveSeconds) appWorkerTotalMaxMemorySize
(long maxTotalMemorySize) <CHANNEL_PIPELINE>
Router.BuilderbeforeChunkAggregator
(Class<CHANNEL_PIPELINE> pipelineClass, Consumer<CHANNEL_PIPELINE> consumer) <CHANNEL_PIPELINE>
Router.BuilderbeforeHttpRequestHandler
(Class<CHANNEL_PIPELINE> pipelineClass, Consumer<CHANNEL_PIPELINE> consumer) <CHANNEL_PIPELINE>
Router.BuilderbeforeHttpServerCodec
(Class<CHANNEL_PIPELINE> pipelineClass, Consumer<CHANNEL_PIPELINE> consumer) <CHANNEL_PIPELINE>
Router.BuilderbeforeIdleStateHandler
(Class<CHANNEL_PIPELINE> pipelineClass, Consumer<CHANNEL_PIPELINE> consumer) <POOL_TYPE>
Router.BuilderbossPoolBuilder
(Class<POOL_TYPE> poolClass, Function<Executor, POOL_TYPE> builder) bossPoolSize
(int bossPoolSize) build()
connectionLimit
(int connectionLimit) connectionLimit
(IntSupplier connectionLimit) default Router.Builder
enableInboundHttp2
(boolean enableHttp2) handshakeTimeout
(long time, TimeUnit unit) default Router.Builder
http2HeaderTableSize
(int http2HeaderTableSize) default Router.Builder
http2InitialWindowSize
(int http2InitialWindowSize) default Router.Builder
http2MaxConcurrentStreams
(int maxConcurrentStreams) default Router.Builder
http2MaxFrameSize
(int http2MaxFrameSize) default Router.Builder
http2MaxHeaderListSize
(int http2MaxHeaderListSize) idleTimeout
(long time, TimeUnit unit) <POOL_TYPE>
Router.BuilderioWorkerPoolBuilder
(Class<POOL_TYPE> poolClass, Function<Executor, POOL_TYPE> builder) ioWorkerPoolSize
(int ioWorkerPoolSize) maxChunkSize
(int maxChunkSize) maxContentLength
(long maxContentLength) maxHeaderSize
(int maxHeaderSize) maxInitialLineLength
(int maxInitialLineLength) <CHANNEL_HANDLER>
Router.PipelineFactory<CHANNEL_HANDLER>pipelineFactory
(Class<CHANNEL_HANDLER> handlerClass) resourceRegistry
(ResourceRegistry resourceRegistry) serverSocketChannel
(Class<?> serverSocketChannel) serverSocketOptions
(String key, Object value) serverSocketOptions
(Map<String, Object> serverSocketOptions) threadFactory
(ThreadFactory threadFactory) default Router.Builder
timeoutProcessor
(TimeoutProcessor timeoutProcessor) timeoutProcessor
(RouterTimeoutProcessor timeoutProcessor) default Router.Builder
useCustomMultiplexHandler
(boolean useCustomMultiplexHandler) workerExecutor
(Executor workerExecutor)
-
Field Details
-
MINIMUM_MAX_HEADER_SIZE
static final int MINIMUM_MAX_HEADER_SIZE- See Also:
-
MINIMUM_MAX_INITIAL_LINE_LENGTH
static final int MINIMUM_MAX_INITIAL_LINE_LENGTH- See Also:
-
MINIMUM_MAX_CHUNK_SIZE
static final int MINIMUM_MAX_CHUNK_SIZE- See Also:
-
MINIMUM_MAX_CONTENT_LENGTH
static final long MINIMUM_MAX_CONTENT_LENGTH- See Also:
-
MINIMUM_IDLE_TIMEOUT_MILLIS
static final long MINIMUM_IDLE_TIMEOUT_MILLIS- See Also:
-
HANDSHAKE_TIMEOUT_MILLIS
static final long HANDSHAKE_TIMEOUT_MILLIS- See Also:
-
-
Method Details
-
nettyVersion
Netty nettyVersion() -
name
-
resourceRegistry
-
threadFactory
-
serverSocketChannel
-
bossPoolSize
-
ioWorkerPoolSize
-
executor
-
workerExecutor
-
appWorkerCorePoolSize
-
appWorkerChannelMaxMemorySize
-
appWorkerTotalMaxMemorySize
-
appWorkerKeepAliveSeconds
-
timeoutProcessor
-
timeoutProcessor
-
connectionLimit
-
connectionLimit
-
serverSocketOptions
-
serverSocketOptions
-
maxHeaderSize
-
maxInitialLineLength
-
maxChunkSize
-
maxContentLength
-
idleTimeout
-
handshakeTimeout
-
enableInboundHttp2
-
http2MaxConcurrentStreams
-
http2MaxFrameSize
-
http2InitialWindowSize
-
http2HeaderTableSize
-
http2MaxHeaderListSize
-
useCustomMultiplexHandler
-
addBootstrapFilter
-
pipelineFactory
<CHANNEL_HANDLER> Router.PipelineFactory<CHANNEL_HANDLER> pipelineFactory(@Nonnull Class<CHANNEL_HANDLER> handlerClass) -
beforeHttpServerCodec
<CHANNEL_PIPELINE> Router.Builder beforeHttpServerCodec(@Nonnull Class<CHANNEL_PIPELINE> pipelineClass, @Nonnull Consumer<CHANNEL_PIPELINE> consumer) -
beforeChunkAggregator
<CHANNEL_PIPELINE> Router.Builder beforeChunkAggregator(@Nonnull Class<CHANNEL_PIPELINE> pipelineClass, @Nonnull Consumer<CHANNEL_PIPELINE> consumer) -
beforeIdleStateHandler
<CHANNEL_PIPELINE> Router.Builder beforeIdleStateHandler(@Nonnull Class<CHANNEL_PIPELINE> pipelineClass, @Nonnull Consumer<CHANNEL_PIPELINE> consumer) -
beforeHttpRequestHandler
<CHANNEL_PIPELINE> Router.Builder beforeHttpRequestHandler(@Nonnull Class<CHANNEL_PIPELINE> pipelineClass, @Nonnull Consumer<CHANNEL_PIPELINE> consumer) -
ioWorkerPoolBuilder
<POOL_TYPE> Router.Builder ioWorkerPoolBuilder(@Nonnull Class<POOL_TYPE> poolClass, @Nonnull Function<Executor, POOL_TYPE> builder) -
bossPoolBuilder
<POOL_TYPE> Router.Builder bossPoolBuilder(@Nonnull Class<POOL_TYPE> poolClass, @Nonnull Function<Executor, POOL_TYPE> builder) -
build
-