com.jeesuite.amqp.kafka.OffsetAndMetadataStat Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jeesuite-amqp-adapter Show documentation
Show all versions of jeesuite-amqp-adapter Show documentation
MQ适配器,支持各种云厂商云MQ,已经原生kafka,RocketMQ,RabbitMQ等
The newest version!
package com.jeesuite.amqp.kafka;
public class OffsetAndMetadataStat {
private long offset;
private boolean commited = true;
public OffsetAndMetadataStat(long offset) {
this.offset = offset;
}
public long getOffset() {
return offset;
}
public void setOffset(long offset) {
this.offset = offset;
}
public boolean isCommited() {
return commited;
}
public void setCommited(boolean commited) {
this.commited = commited;
}
public void updateOnConsumed(long offset) {
this.offset = offset;
this.commited = false;
}
}