Package org.tikv.cdc
Class CDCClient
- java.lang.Object
-
- org.tikv.cdc.CDCClient
-
- All Implemented Interfaces:
AutoCloseable
public class CDCClient extends Object implements AutoCloseable
Copied from https://github.com/tikv/client-java project to fix https://github.com/tikv/client-java/issues/600 for 3.2.0 version.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.tikv.kvproto.Cdcpb.Event.Rowget()longgetMaxResolvedTs()longgetMinResolvedTs()voidhandleErrorEvent(long regionId, Throwable error, long resolvedTs)voidstart(long startTs)
-
-
-
Method Detail
-
start
public void start(long startTs)
-
get
public org.tikv.kvproto.Cdcpb.Event.Row get() throws InterruptedException- Throws:
InterruptedException
-
getMinResolvedTs
public long getMinResolvedTs()
-
getMaxResolvedTs
public long getMaxResolvedTs()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
handleErrorEvent
public void handleErrorEvent(long regionId, Throwable error, long resolvedTs)
-
-