Açıklaması şöyle
Consumers can read messages with different isolation levels.- In read_uncommitted mode, consumers read messages as soon as they are written.- In read_committed mode, consumers only read messages that are committed.
Örnek
Şöyle yaparız
Properties props = new Properties();...// Set isolation level to read_committedprops.put(ConsumerConfig.ISOLATION_LEVEL_CONFIG, "read_committed");
No comments:
Post a Comment