My doubt is from link https://hazelcast.org/mastering-hazelcast/#controlled-partitioning
It says:
Hazelcast has two types of distributed objects.
One type is the truly partitioned data structure, like the IMap, where each partition will store a section of the Map.
The other type is a non-partitioned data structure, like the IAtomicLong or the ISemaphore, where only a single partition is responsible for storing the main instance.
Let's say, I have put 500 records in IMap, what I understand is, each record may go in different partition. Now I have put 500 records in ISemaphore, then from above quoted paragraph from the link does it mean, that all the 500 records will go in single partition? Please help me to understand IAtomicLong or the ISemaphore, where only a single partition is responsible for storing the main instance.
Also would like to understand, how Semaphore and IMap differ when it comes to data distribution across parttion in hazelcast?