package com.lingniu.ingest.tdenginehistory;

import java.time.Instant;

public record TdenginePageCursor(Instant ts, String tieBreaker) {

    public TdenginePageCursor {
        if (ts == null) {
            throw new IllegalArgumentException("cursor ts must not be null");
        }
        tieBreaker = tieBreaker == null ? "" : tieBreaker;
    }
}
