Skip to content

Commit

Permalink
Fixed setPublicAddress() call example - the method takes just one Str…
Browse files Browse the repository at this point in the history
…ing argument.

Fixed port configuration example - String->int, removed semicolon, setPortCount() doesn't support fluent API (see hazelcast/hazelcast#11669).
  • Loading branch information
kwart committed Oct 26, 2017
1 parent db89a97 commit 421fce2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OtherNetworkConfigurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ All network related configurations are performed via the `network` element in th
```java
Config config = new Config();
config.getNetworkConfig()
.setPublicAddress( "11.22.33.44", "5555" );
.setPublicAddress( "11.22.33.44:5555" );
```


Expand Down Expand Up @@ -380,4 +380,4 @@ config.getNetworkConfig().getJoin().getMulticastConfig().setEnabled(false);
// perform other configuration

Hazelcast.newHazelcastInstance(config);
```
```

0 comments on commit 421fce2

Please sign in to comment.