All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cg.eventbus.policy.StrictCommitPolicy Maven / Gradle / Ivy

There is a newer version: 1.0.8
Show newest version
package org.cg.eventbus.policy;

import org.cg.eventbus.message.Message;

/**
 * A very strict commit policy. 
* Consumer will commit its offset after consume every single message. * @author liang.li * */ public class StrictCommitPolicy extends CommitPolicy{ public StrictCommitPolicy() { super(); } @Override public boolean needCommit() { return true; } @Override public boolean needCommit(Message msg) { return true; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy