(@Nullable Config config)
| 136 | } |
| 137 | |
| 138 | private @NotNull ServiceConf initConfig(@Nullable Config config) { |
| 139 | var sc = config != null ? config.getServiceConf(name) : null; |
| 140 | if (sc == null) { |
| 141 | // setup program default |
| 142 | sc = new ServiceConf(); |
| 143 | if (config != null) { |
| 144 | // reference to config default |
| 145 | sc.setSocketOptions(config.getDefaultServiceConf().getSocketOptions()); |
| 146 | sc.setHandshakeOptions(config.getDefaultServiceConf().getHandshakeOptions()); |
| 147 | } |
| 148 | } |
| 149 | sc.setService(this); |
| 150 | return sc; |
| 151 | } |
| 152 | |
| 153 | public void setSelectors(@Nullable Selectors selectors) { |
| 154 | this.selectors = selectors; |
no test coverage detected