com.taobao.drc.clusterclient.AbstractClusterMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of consumer-core Show documentation
Show all versions of consumer-core Show documentation
The java consumer core component for Data Transmission Service
package com.taobao.drc.clusterclient;
/**
* @author yangyang
* @since 2017/7/6
*/
public abstract class AbstractClusterMessage {
private final R record;
private final P partition;
public AbstractClusterMessage(R record, P partition) {
this.partition = partition;
this.record = record;
}
public P getPartition() {
return partition;
}
public R getRecord() {
return record;
}
abstract public C getCheckpoint();
}