@@ -110,8 +110,8 @@ public static class Builder {
110
110
* @return this Builder.
111
111
*/
112
112
public Builder setHostname (String hostname ) {
113
- this .hostname = hostname ;
114
- return this ;
113
+ this .hostname = hostname ;
114
+ return this ;
115
115
}
116
116
117
117
/**
@@ -121,8 +121,8 @@ public Builder setHostname(String hostname) {
121
121
* @return this Builder.
122
122
*/
123
123
public Builder setPort (int port ) {
124
- this .port = port ;
125
- return this ;
124
+ this .port = port ;
125
+ return this ;
126
126
}
127
127
128
128
/**
@@ -132,8 +132,8 @@ public Builder setPort(int port) {
132
132
* @return this Builder.
133
133
*/
134
134
public Builder setConnectTimeout (Duration connectTimeout ) {
135
- this .connectTimeout = connectTimeout ;
136
- return this ;
135
+ this .connectTimeout = connectTimeout ;
136
+ return this ;
137
137
}
138
138
139
139
/**
@@ -143,8 +143,8 @@ public Builder setConnectTimeout(Duration connectTimeout) {
143
143
* @return this Builder.
144
144
*/
145
145
public Builder setConnectPersistent (boolean connectPersistent ) {
146
- this .connectPersistent = connectPersistent ;
147
- return this ;
146
+ this .connectPersistent = connectPersistent ;
147
+ return this ;
148
148
}
149
149
150
150
/**
@@ -154,8 +154,8 @@ public Builder setConnectPersistent(boolean connectPersistent) {
154
154
* @return this Builder.
155
155
*/
156
156
public Builder setReconnectLazy (boolean reconnectLazy ) {
157
- this .reconnectLazy = reconnectLazy ;
158
- return this ;
157
+ this .reconnectLazy = reconnectLazy ;
158
+ return this ;
159
159
}
160
160
161
161
/**
@@ -166,8 +166,8 @@ public Builder setReconnectLazy(boolean reconnectLazy) {
166
166
* @see Netty#sharedEventLoop()
167
167
*/
168
168
public Builder setEventLoopGroup (EventLoopGroup eventLoopGroup ) {
169
- this .eventLoopGroup = eventLoopGroup ;
170
- return this ;
169
+ this .eventLoopGroup = eventLoopGroup ;
170
+ return this ;
171
171
}
172
172
173
173
/**
@@ -178,30 +178,32 @@ public Builder setEventLoopGroup(EventLoopGroup eventLoopGroup) {
178
178
* @see Modbus#sharedExecutor()
179
179
*/
180
180
public Builder setExecutor (ExecutorService executor ) {
181
- this .executor = executor ;
182
- return this ;
181
+ this .executor = executor ;
182
+ return this ;
183
183
}
184
184
185
185
/**
186
186
* Set the {@link Consumer} that can be used to customize the Netty {@link Bootstrap}.
187
187
*
188
- * @param bootstrapCustomizer the {@link Consumer} that can be used to customize the Netty {@link Bootstrap}.
188
+ * @param bootstrapCustomizer the {@link Consumer} that can be used to customize the Netty
189
+ * {@link Bootstrap}.
189
190
* @return this Builder.
190
191
*/
191
192
public Builder setBootstrapCustomizer (Consumer <Bootstrap > bootstrapCustomizer ) {
192
- this .bootstrapCustomizer = bootstrapCustomizer ;
193
- return this ;
193
+ this .bootstrapCustomizer = bootstrapCustomizer ;
194
+ return this ;
194
195
}
195
196
196
197
/**
197
198
* Set the {@link Consumer} that can be used to customize the Netty {@link ChannelPipeline}.
198
199
*
199
- * @param pipelineCustomizer the {@link Consumer} that can be used to customize the Netty {@link ChannelPipeline}.
200
+ * @param pipelineCustomizer the {@link Consumer} that can be used to customize the Netty {@link
201
+ * ChannelPipeline}.
200
202
* @return this Builder.
201
203
*/
202
204
public Builder setPipelineCustomizer (Consumer <ChannelPipeline > pipelineCustomizer ) {
203
- this .pipelineCustomizer = pipelineCustomizer ;
204
- return this ;
205
+ this .pipelineCustomizer = pipelineCustomizer ;
206
+ return this ;
205
207
}
206
208
207
209
/**
@@ -211,8 +213,8 @@ public Builder setPipelineCustomizer(Consumer<ChannelPipeline> pipelineCustomize
211
213
* @return this Builder.
212
214
*/
213
215
public Builder setTlsEnabled (boolean tlsEnabled ) {
214
- this .tlsEnabled = tlsEnabled ;
215
- return this ;
216
+ this .tlsEnabled = tlsEnabled ;
217
+ return this ;
216
218
}
217
219
218
220
/**
@@ -222,8 +224,8 @@ public Builder setTlsEnabled(boolean tlsEnabled) {
222
224
* @return this Builder.
223
225
*/
224
226
public Builder setKeyManagerFactory (KeyManagerFactory keyManagerFactory ) {
225
- this .keyManagerFactory = keyManagerFactory ;
226
- return this ;
227
+ this .keyManagerFactory = keyManagerFactory ;
228
+ return this ;
227
229
}
228
230
229
231
/**
@@ -233,8 +235,8 @@ public Builder setKeyManagerFactory(KeyManagerFactory keyManagerFactory) {
233
235
* @return this Builder.
234
236
*/
235
237
public Builder setTrustManagerFactory (TrustManagerFactory trustManagerFactory ) {
236
- this .trustManagerFactory = trustManagerFactory ;
237
- return this ;
238
+ this .trustManagerFactory = trustManagerFactory ;
239
+ return this ;
238
240
}
239
241
240
242
public NettyClientTransportConfig build () {
0 commit comments