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 92ebd10
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/OtherNetworkConfigurations.md
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 @@ -157,7 +157,7 @@ The `join` configuration element is used to discover Hazelcast members and enabl
<discovery-strategy ... />
</discovery-strategies>
</join>
<network>
</network>
```

**Programmatic:**
Expand Down Expand Up @@ -360,7 +360,7 @@ The following configuration examples contain properties that will be provided to
</properties>
</member-address-provider>
<!-- other network configuration -->
<network>
</network>
```

**Programmatic:**
Expand All @@ -380,4 +380,4 @@ config.getNetworkConfig().getJoin().getMulticastConfig().setEnabled(false);
// perform other configuration

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

0 comments on commit 92ebd10

Please sign in to comment.