Class NIOTransportBuilder<T extends NIOTransportBuilder>

    • Field Detail

      • transportClass

        protected final java.lang.Class<? extends NIOTransport> transportClass
      • selectorProvider

        protected java.nio.channels.spi.SelectorProvider selectorProvider
      • selectorRunnerCount

        protected int selectorRunnerCount
      • name

        protected java.lang.String name
      • readBufferSize

        protected int readBufferSize
      • writeBufferSize

        protected int writeBufferSize
      • clientSocketSoTimeout

        protected int clientSocketSoTimeout
      • connectionTimeout

        protected int connectionTimeout
      • reuseAddress

        protected boolean reuseAddress
      • maxPendingBytesPerConnection

        protected int maxPendingBytesPerConnection
      • optimizedForMultiplexing

        protected boolean optimizedForMultiplexing
      • readTimeout

        protected long readTimeout
      • writeTimeout

        protected long writeTimeout
    • Constructor Detail

      • NIOTransportBuilder

        protected NIOTransportBuilder​(java.lang.Class<? extends NIOTransport> transportClass)

        Constructs a new NIOTransport using the given transportClass and IOStrategy.

        The builder's worker thread pool configuration will be based on the return value of WorkerThreadPoolConfigProducer.createDefaultWorkerPoolConfig(Transport). If worker thread configuration is non-null, the initial selector thread pool configuration will be cloned from it, otherwise a default configuration will be chosen.

        Parameters:
        transportClass - the class of the NIOTransport implementation to be used.