use of com.airbnb.spinaltap.mysql.Transaction in project SpinalTap by airbnb.
the class XidMapper method map.
public List<MysqlMutation> map(XidEvent event) {
endTransaction.set(new Transaction(event.getTimestamp(), event.getOffset(), event.getBinlogFilePos()));
metrics.transactionReceived();
return Collections.emptyList();
}
use of com.airbnb.spinaltap.mysql.Transaction in project SpinalTap by airbnb.
the class MysqlMutationMapperTest method setUp.
@Before
public void setUp() throws Exception {
lastTransaction.set(new Transaction(12L, 30L, new BinlogFilePos("test.txt", 14, 100)));
beginTransaction.set(new Transaction(15L, 31L, new BinlogFilePos("test.txt", 14, 120)));
when(tableCache.get(TABLE_ID)).thenReturn(TEST_TABLE);
}
Aggregations