@@ -162,17 +162,6 @@ public String memberHost() {
162162 return mappedHost ;
163163 }
164164
165- /**
166- * Returns mappedHost. {@code mappedHost} is a config property for container environments, it's
167- * being set for advertising to scalecube cluster some connectable hostname which maps to
168- * scalecube transport's hostname on which scalecube transport is listening.
169- *
170- * @return mapped host
171- */
172- public String mappedHost () {
173- return mappedHost ;
174- }
175-
176165 /**
177166 * Deprecated since {@code 2.4.10} in favor of {@link #mappedHost(String)}.
178167 *
@@ -186,6 +175,17 @@ public ClusterConfig memberHost(String memberHost) {
186175 return c ;
187176 }
188177
178+ /**
179+ * Returns mappedHost. {@code mappedHost} is a config property for container environments, it's
180+ * being set for advertising to scalecube cluster some connectable hostname which maps to
181+ * scalecube transport's hostname on which scalecube transport is listening.
182+ *
183+ * @return mapped host
184+ */
185+ public String mappedHost () {
186+ return mappedHost ;
187+ }
188+
189189 /**
190190 * Setter for mappedHost. {@code mappedHost} is a config property for container environments, it's
191191 * being set for advertising to scalecube cluster some connectable hostname which maps to
@@ -223,16 +223,6 @@ public ClusterConfig memberAlias(String memberAlias) {
223223 return c ;
224224 }
225225
226- /**
227- * Deprecated since {@code 2.4.10} in favor of {@link #mappedPort()}.
228- *
229- * @return member port
230- */
231- @ Deprecated
232- public Integer memberPort () {
233- return mappedPort ;
234- }
235-
236226 /**
237227 * Returns mappedPort. {@code mappedPort} is a config property for container environments, it's
238228 * being set for advertising to scalecube cluster a port which mapped to scalecube transport's
@@ -245,29 +235,39 @@ public Integer mappedPort() {
245235 }
246236
247237 /**
248- * Deprecated since {@code 2.4.10} in favor of {@link #mappedPort(Integer)}.
238+ * Setter for mappedPort. {@code mappedPort} is a config property for container environments, it's
239+ * being set for advertising to scalecube cluster a port which mapped to scalecube transport's
240+ * listening port.
249241 *
250- * @param memberPort member port
242+ * @param mappedPort mapped port
251243 * @return new {@code ClusterConfig} instance
252244 */
253- @ Deprecated
254- public ClusterConfig memberPort (Integer memberPort ) {
245+ public ClusterConfig mappedPort (Integer mappedPort ) {
255246 ClusterConfig c = clone ();
256- c .mappedPort = memberPort ;
247+ c .mappedPort = mappedPort ;
257248 return c ;
258249 }
259250
260251 /**
261- * Setter for mappedPort. {@code mappedPort} is a config property for container environments, it's
262- * being set for advertising to scalecube cluster a port which mapped to scalecube transport's
263- * listening port.
252+ * Deprecated since {@code 2.4.10} in favor of {@link #mappedPort()}.
264253 *
265- * @param mappedPort mapped port
254+ * @return member port
255+ */
256+ @ Deprecated
257+ public Integer memberPort () {
258+ return mappedPort ;
259+ }
260+
261+ /**
262+ * Deprecated since {@code 2.4.10} in favor of {@link #mappedPort(Integer)}.
263+ *
264+ * @param memberPort member port
266265 * @return new {@code ClusterConfig} instance
267266 */
268- public ClusterConfig mappedPort (Integer mappedPort ) {
267+ @ Deprecated
268+ public ClusterConfig memberPort (Integer memberPort ) {
269269 ClusterConfig c = clone ();
270- c .mappedPort = mappedPort ;
270+ c .mappedPort = memberPort ;
271271 return c ;
272272 }
273273
0 commit comments