Interface Router.Builder

  • All Known Implementing Classes:
    Router4
    Enclosing interface:
    Router

    public static interface Router.Builder
    • Method Detail

      • nettyVersion

        Netty nettyVersion()
      • threadFactory

        Router.Builder threadFactory​(@Nonnull
                                     java.util.concurrent.ThreadFactory threadFactory)
      • serverSocketChannel

        Router.Builder serverSocketChannel​(@Nonnull
                                           java.lang.Class<?> serverSocketChannel)
      • bossPoolSize

        Router.Builder bossPoolSize​(@Nonnegative
                                    int bossPoolSize)
      • ioWorkerPoolSize

        Router.Builder ioWorkerPoolSize​(@Nonnegative
                                        int ioWorkerPoolSize)
      • executor

        Router.Builder executor​(@Nonnull
                                java.util.concurrent.Executor executor)
      • workerExecutor

        Router.Builder workerExecutor​(@Nonnull
                                      java.util.concurrent.Executor workerExecutor)
      • appWorkerCorePoolSize

        Router.Builder appWorkerCorePoolSize​(@Nonnegative
                                             int corePoolSize)
      • appWorkerChannelMaxMemorySize

        Router.Builder appWorkerChannelMaxMemorySize​(@Nonnegative
                                                     long maxChannelMemorySize)
      • appWorkerTotalMaxMemorySize

        Router.Builder appWorkerTotalMaxMemorySize​(@Nonnegative
                                                   long maxTotalMemorySize)
      • appWorkerKeepAliveSeconds

        Router.Builder appWorkerKeepAliveSeconds​(@Nonnegative
                                                 long appWorkerKeepAliveSeconds)
      • connectionLimit

        Router.Builder connectionLimit​(@Nonnegative
                                       int connectionLimit)
      • connectionLimit

        Router.Builder connectionLimit​(@Nonnull
                                       java.util.function.IntSupplier connectionLimit)
      • serverSocketOptions

        Router.Builder serverSocketOptions​(java.util.Map<java.lang.String,​java.lang.Object> serverSocketOptions)
      • serverSocketOptions

        Router.Builder serverSocketOptions​(@Nonnull
                                           java.lang.String key,
                                           java.lang.Object value)
      • maxHeaderSize

        Router.Builder maxHeaderSize​(@Nonnegative
                                     int maxHeaderSize)
      • maxInitialLineLength

        Router.Builder maxInitialLineLength​(@Nonnegative
                                            int maxInitialLineLength)
      • maxChunkSize

        Router.Builder maxChunkSize​(@Nonnegative
                                    int maxChunkSize)
      • maxContentLength

        Router.Builder maxContentLength​(@Nonnegative
                                        long maxContentLength)
      • idleTimeout

        Router.Builder idleTimeout​(@Nonnegative
                                   long time,
                                   @Nonnull
                                   java.util.concurrent.TimeUnit unit)
      • handshakeTimeout

        Router.Builder handshakeTimeout​(@Nonnegative
                                        long time,
                                        @Nonnull
                                        java.util.concurrent.TimeUnit unit)
      • enableInboundHttp2

        default Router.Builder enableInboundHttp2​(boolean enableHttp2)
      • http2MaxConcurrentStreams

        default Router.Builder http2MaxConcurrentStreams​(int maxConcurrentStreams)
      • http2MaxFrameSize

        default Router.Builder http2MaxFrameSize​(int http2MaxFrameSize)
      • http2InitialWindowSize

        default Router.Builder http2InitialWindowSize​(int http2InitialWindowSize)
      • http2HeaderTableSize

        default Router.Builder http2HeaderTableSize​(int http2HeaderTableSize)
      • http2MaxHeaderListSize

        default Router.Builder http2MaxHeaderListSize​(int http2MaxHeaderListSize)
      • useCustomMultiplexHandler

        default Router.Builder useCustomMultiplexHandler​(boolean useCustomMultiplexHandler)
      • addBootstrapFilter

        default <T> Router.Builder addBootstrapFilter​(java.util.function.Function<T,​T> function)
      • pipelineFactory

        <CHANNEL_HANDLER> Router.PipelineFactory<CHANNEL_HANDLER> pipelineFactory​(@Nonnull
                                                                                  java.lang.Class<CHANNEL_HANDLER> handlerClass)
      • beforeHttpServerCodec

        <CHANNEL_PIPELINE> Router.Builder beforeHttpServerCodec​(@Nonnull
                                                                java.lang.Class<CHANNEL_PIPELINE> pipelineClass,
                                                                @Nonnull
                                                                java.util.function.Consumer<CHANNEL_PIPELINE> consumer)
      • beforeChunkAggregator

        <CHANNEL_PIPELINE> Router.Builder beforeChunkAggregator​(@Nonnull
                                                                java.lang.Class<CHANNEL_PIPELINE> pipelineClass,
                                                                @Nonnull
                                                                java.util.function.Consumer<CHANNEL_PIPELINE> consumer)
      • beforeIdleStateHandler

        <CHANNEL_PIPELINE> Router.Builder beforeIdleStateHandler​(@Nonnull
                                                                 java.lang.Class<CHANNEL_PIPELINE> pipelineClass,
                                                                 @Nonnull
                                                                 java.util.function.Consumer<CHANNEL_PIPELINE> consumer)
      • beforeHttpRequestHandler

        <CHANNEL_PIPELINE> Router.Builder beforeHttpRequestHandler​(@Nonnull
                                                                   java.lang.Class<CHANNEL_PIPELINE> pipelineClass,
                                                                   @Nonnull
                                                                   java.util.function.Consumer<CHANNEL_PIPELINE> consumer)
      • ioWorkerPoolBuilder

        <POOL_TYPE> Router.Builder ioWorkerPoolBuilder​(@Nonnull
                                                       java.lang.Class<POOL_TYPE> poolClass,
                                                       @Nonnull
                                                       java.util.function.Function<java.util.concurrent.Executor,​POOL_TYPE> builder)
      • bossPoolBuilder

        <POOL_TYPE> Router.Builder bossPoolBuilder​(@Nonnull
                                                   java.lang.Class<POOL_TYPE> poolClass,
                                                   @Nonnull
                                                   java.util.function.Function<java.util.concurrent.Executor,​POOL_TYPE> builder)
      • build

        @CheckReturnValue
        Router build()