Hazelcast – ISet
The java.util.Set provides an interface for holding collections of objects which are unique. The ordering of elements does not matter. Similarly, ISet implements a distributed version of Java Set. It…
The java.util.Set provides an interface for holding collections of objects which are unique. The ordering of elements does not matter. Similarly, ISet implements a distributed version of Java Set. It…
The java.util.concurrent.CountDownLatch provides a way for threads to wait, while other threads complete a set of operations in a multithreaded environment in a JVM. Similarly, ICountDownLatch provides a distributed version…
The java.util.concurrent.Semaphore supports synchronization by providing limited access when working in a multithreaded environment in a JVM. Sounds a lot like a lock, right? But there are two major differences…
The java.util.concurrent.locks.The lock provides an interface that can be implemented and used for locking critical sections when working in a multithreaded environment in a JVM. Similarly, ILock extends the interface…
The Atomic Long data structure in Java provides a thread-safe way for using Long. Similarly, IAtomicLong is more of a distributed version of AtomicLong. It provides similar functions of which…
java.util.the concurrent package provides data structures such as AtomicLong, CountDownLatch, ConcurrentHashMap, etc. which are useful when you have more than one thread reading/writing data to the data structure. But to…
Given that Hazelcast is a distributed IMDG and typically is set up on multiple machines, it requires access to the internal/external network. The most important use-case being the discovery of…
Hazelcast supports programmatic as well as XML-based configuration. However, it is the XML configuration that is heavily used in production, given its ease of use. But XML configuration internally uses…
Hazelcast can be run in isolation (single node) or multiple nodes can be run to form a cluster. Let us first try starting a single instance. Single Instance Example Now,…
Hazelcast requires Java 1.6 or above. Hazelcast can also be used with .NET, C++, or other JVM-based languages like Scala and Clojure. However, for this tutorial, we are going to…