
com.alicloud.openservices.tablestore.reader.ReaderEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tablestore Show documentation
Show all versions of tablestore Show documentation
Aliyun Open Services SDK for Java Copyright (C) Alibaba Cloud Computing All rights reserved. 版权所有
(C)阿里云计算有限公司 http://www.aliyun.com
The newest version!
package com.alicloud.openservices.tablestore.reader;
import java.util.concurrent.CountDownLatch;
import com.lmax.disruptor.EventFactory;
public class ReaderEvent {
public EventType type;
public PrimaryKeyWithTable pkWithTable;
public ReaderGroup readerGroup;
public CountDownLatch latch;
public ReaderEvent() {
}
public void setValue(PrimaryKeyWithTable pkWithTable, final ReaderGroup readerGroup) {
this.type = null;
this.pkWithTable = pkWithTable;
this.readerGroup = readerGroup;
}
public void setValue(CountDownLatch latch, EventType type) {
this.type = type;
this.latch = latch;
}
public enum EventType {
FLUSH,
SEND,
QUERY
}
public static class ReaderEventFactory implements EventFactory {
@Override
public ReaderEvent newInstance() {
return new ReaderEvent();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy