Apache Ignite how to set Synchronization Mode

There is three synchronization modes in Apache Ignite:

  • FULL_ASYNC
  • FULL_SYNC
  • PRIMARY_SYNC

You can switch them by this way:

CacheConfiguration<?, ?> cacheCfg = new CacheConfiguration<>();
cacheCfg.setName("cacheName");
cacheCfg.setWriteSynchronizationMode(CacheWriteSynchronizationMode.FULL_SYNC);
igniteConfiguration.setCacheConfiguration(cacheCfg);

If you still have any questions, feel free to ask me in the comments under this article, or write me on promark33@gmail.com.

Leave a Reply

Your email address will not be published.