Package com.zendesk.maxwell.schema
Class PositionStoreThread
- java.lang.Object
-
- com.zendesk.maxwell.util.RunLoopProcess
-
- com.zendesk.maxwell.schema.PositionStoreThread
-
- All Implemented Interfaces:
StoppableTask
,Runnable
public class PositionStoreThread extends RunLoopProcess implements Runnable
-
-
Field Summary
-
Fields inherited from class com.zendesk.maxwell.util.RunLoopProcess
taskState
-
-
Constructor Summary
Constructors Constructor Description PositionStoreThread(MysqlPositionStore store, MaxwellContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
beforeStop()
Position
getPosition()
void
heartbeat()
void
run()
void
setPosition(Position p)
void
start()
void
work()
-
Methods inherited from class com.zendesk.maxwell.util.RunLoopProcess
awaitStop, beforeStart, interrupt, requestStop, runLoop
-
-
-
-
Constructor Detail
-
PositionStoreThread
public PositionStoreThread(MysqlPositionStore store, MaxwellContext context)
-
-
Method Detail
-
start
public void start()
-
beforeStop
protected void beforeStop()
- Overrides:
beforeStop
in classRunLoopProcess
-
work
public void work() throws Exception
- Specified by:
work
in classRunLoopProcess
- Throws:
Exception
-
setPosition
public void setPosition(Position p)
-
getPosition
public Position getPosition() throws SQLException
- Throws:
SQLException
-
-