Interface SegmentIdFactory


  • public interface SegmentIdFactory
    A factory for SegmentId given their representation in MSB/LSB longs.

    An instance of this class is used by the SegmentTracker to delegate the creation of SegmentIds to its caller, that usually is a SegmentStore. This way, the SegmentStore may attach additional, implementation-dependent information to the returned SegmentId in a way that is transparent to the implementation of the SegmentTracker.

    • Method Detail

      • newSegmentId

        @NotNull
        @NotNull SegmentId newSegmentId​(long msb,
                                        long lsb)
        Creates a SegmentId represented by the given MSB/LSB pair.
        Parameters:
        msb - The most significant bits of the SegmentId.
        lsb - The least significant bits of the SegmentId.
        Returns:
        An instance of SegmentId. The returned instance is never null.