(
List<? extends SocketAddress> addresses,
ChannelFactory<? extends ServerChannel> channelFactory,
Map<ChannelOption<?>, ?> channelOptions,
Map<ChannelOption<?>, ?> childChannelOptions,
ObjectPool<? extends EventLoopGroup> bossGroupPool,
ObjectPool<? extends EventLoopGroup> workerGroupPool,
boolean forceHeapBuffer,
ProtocolNegotiator protocolNegotiator,
List<? extends ServerStreamTracer.Factory> streamTracerFactories,
TransportTracer.Factory transportTracerFactory,
int maxStreamsPerConnection,
boolean autoFlowControl,
int flowControlWindow,
int maxMessageSize,
int maxHeaderListSize,
int softLimitHeaderListSize,
long keepAliveTimeInNanos,
long keepAliveTimeoutInNanos,
long maxConnectionIdleInNanos,
long maxConnectionAgeInNanos, long maxConnectionAgeGraceInNanos,
boolean permitKeepAliveWithoutCalls, long permitKeepAliveTimeInNanos,
int maxRstCount, long maxRstPeriodNanos,
Attributes eagAttributes, InternalChannelz channelz,
MetricRecorder metricRecorder)
| 116 | private final EventLoop bossExecutor; |
| 117 | |
| 118 | NettyServer( |
| 119 | List<? extends SocketAddress> addresses, |
| 120 | ChannelFactory<? extends ServerChannel> channelFactory, |
| 121 | Map<ChannelOption<?>, ?> channelOptions, |
| 122 | Map<ChannelOption<?>, ?> childChannelOptions, |
| 123 | ObjectPool<? extends EventLoopGroup> bossGroupPool, |
| 124 | ObjectPool<? extends EventLoopGroup> workerGroupPool, |
| 125 | boolean forceHeapBuffer, |
| 126 | ProtocolNegotiator protocolNegotiator, |
| 127 | List<? extends ServerStreamTracer.Factory> streamTracerFactories, |
| 128 | TransportTracer.Factory transportTracerFactory, |
| 129 | int maxStreamsPerConnection, |
| 130 | boolean autoFlowControl, |
| 131 | int flowControlWindow, |
| 132 | int maxMessageSize, |
| 133 | int maxHeaderListSize, |
| 134 | int softLimitHeaderListSize, |
| 135 | long keepAliveTimeInNanos, |
| 136 | long keepAliveTimeoutInNanos, |
| 137 | long maxConnectionIdleInNanos, |
| 138 | long maxConnectionAgeInNanos, long maxConnectionAgeGraceInNanos, |
| 139 | boolean permitKeepAliveWithoutCalls, long permitKeepAliveTimeInNanos, |
| 140 | int maxRstCount, long maxRstPeriodNanos, |
| 141 | Attributes eagAttributes, InternalChannelz channelz, |
| 142 | MetricRecorder metricRecorder) { |
| 143 | this.addresses = checkNotNull(addresses, "addresses"); |
| 144 | this.metricRecorder = metricRecorder; |
| 145 | this.channelFactory = checkNotNull(channelFactory, "channelFactory"); |
| 146 | checkNotNull(channelOptions, "channelOptions"); |
| 147 | this.channelOptions = new HashMap<ChannelOption<?>, Object>(channelOptions); |
| 148 | checkNotNull(childChannelOptions, "childChannelOptions"); |
| 149 | this.childChannelOptions = new HashMap<ChannelOption<?>, Object>(childChannelOptions); |
| 150 | this.bossGroupPool = checkNotNull(bossGroupPool, "bossGroupPool"); |
| 151 | this.workerGroupPool = checkNotNull(workerGroupPool, "workerGroupPool"); |
| 152 | this.forceHeapBuffer = forceHeapBuffer; |
| 153 | this.bossGroup = bossGroupPool.getObject(); |
| 154 | this.bossExecutor = bossGroup.next(); |
| 155 | this.channelGroup = new DefaultChannelGroup(this.bossExecutor); |
| 156 | this.workerGroup = workerGroupPool.getObject(); |
| 157 | this.protocolNegotiator = checkNotNull(protocolNegotiator, "protocolNegotiator"); |
| 158 | this.streamTracerFactories = checkNotNull(streamTracerFactories, "streamTracerFactories"); |
| 159 | this.transportTracerFactory = transportTracerFactory; |
| 160 | this.maxStreamsPerConnection = maxStreamsPerConnection; |
| 161 | this.autoFlowControl = autoFlowControl; |
| 162 | this.flowControlWindow = flowControlWindow; |
| 163 | this.maxMessageSize = maxMessageSize; |
| 164 | this.maxHeaderListSize = maxHeaderListSize; |
| 165 | this.softLimitHeaderListSize = softLimitHeaderListSize; |
| 166 | this.keepAliveTimeInNanos = keepAliveTimeInNanos; |
| 167 | this.keepAliveTimeoutInNanos = keepAliveTimeoutInNanos; |
| 168 | this.maxConnectionIdleInNanos = maxConnectionIdleInNanos; |
| 169 | this.maxConnectionAgeInNanos = maxConnectionAgeInNanos; |
| 170 | this.maxConnectionAgeGraceInNanos = maxConnectionAgeGraceInNanos; |
| 171 | this.permitKeepAliveWithoutCalls = permitKeepAliveWithoutCalls; |
| 172 | this.permitKeepAliveTimeInNanos = permitKeepAliveTimeInNanos; |
| 173 | this.maxRstCount = maxRstCount; |
| 174 | this.maxRstPeriodNanos = maxRstPeriodNanos; |
| 175 | this.eagAttributes = checkNotNull(eagAttributes, "eagAttributes"); |
nothing calls this directly
no test coverage detected