Book Image

Getting Started with Hazelcast, Second Edition

By : Matthew Johns
Book Image

Getting Started with Hazelcast, Second Edition

By: Matthew Johns

Overview of this book

Table of Contents (19 chapters)
Getting Started with Hazelcast Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Local network/interface binding


This is used to limit the bound interfaces and ports that Hazelcast associates with.

<network>
 <port auto-increment="false">5701</port>
 <interfaces enabled="true">
  <interface>192.168.0.*</interface>
 </interfaces>
</network>

NetworkConfig nc = config.getNetworkConfig();
nc.setPort(5701).setPortAutoIncrement(false);
nc.getInterfaces().addInterface("192.168.0.*");