private final String _table;
private final String _shard;
private final FieldManager _fieldManager;
public TransactionRecorder(ShardContext shardContext) throws IOException {
TableContext tableContext = shardContext.getTableContext();
_configuration = tableContext.getConfiguration();
_fieldManager = tableContext.getFieldManager();
_walPath = shardContext.getWalShardPath();
_fileSystem = _walPath.getFileSystem(_configuration);
_timeBetweenSyncsNanos = tableContext.getTimeBetweenWALSyncsNanos();
_timer = new Timer("wal-sync-[" + tableContext.getTable() + "/" + shardContext.getShard() + "]", true);
_timer.schedule(this, TimeUnit.NANOSECONDS.toMillis(_timeBetweenSyncsNanos),
TimeUnit.NANOSECONDS.toMillis(_timeBetweenSyncsNanos));
_table = tableContext.getTable();
_shard = shardContext.getShard();
}