Package com.zendesk.maxwell.replication
Class Position
- java.lang.Object
-
- com.zendesk.maxwell.replication.Position
-
- All Implemented Interfaces:
Serializable
public class Position extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Position(BinlogPosition binlogPosition, long lastHeartbeatRead)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Position
addGtid(String gtid, long offset, String file)
static Position
capture(Connection c, boolean gtidMode)
boolean
equals(Object o)
BinlogPosition
getBinlogPosition()
long
getLastHeartbeatRead()
int
hashCode()
boolean
newerThan(Position other)
String
toCommandline()
String
toString()
static Position
valueOf(BinlogPosition binlogPosition, Long lastHeartbeatRead)
Position
withHeartbeat(long lastHeartbeatRead)
-
-
-
Constructor Detail
-
Position
public Position(BinlogPosition binlogPosition, long lastHeartbeatRead)
-
-
Method Detail
-
valueOf
public static Position valueOf(BinlogPosition binlogPosition, Long lastHeartbeatRead)
-
withHeartbeat
public Position withHeartbeat(long lastHeartbeatRead)
-
capture
public static Position capture(Connection c, boolean gtidMode) throws SQLException
- Throws:
SQLException
-
getLastHeartbeatRead
public long getLastHeartbeatRead()
-
getBinlogPosition
public BinlogPosition getBinlogPosition()
-
toCommandline
public String toCommandline()
-
newerThan
public boolean newerThan(Position other)
-
-