Interface SegmentIdProvider
-
- All Known Implementing Classes:
SegmentTracker
public interface SegmentIdProviderInstances of this class providesSegmentIdinstances of a givenSegmentStoreand creates newSegmentIdinstances on the fly if required.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetSegmentIdCount()@NotNull SegmentIdnewBulkSegmentId()Provide aSegmentIdfor a segment of type "data".@NotNull SegmentIdnewDataSegmentId()Provide aSegmentIdfor a segment of type "bulk".@NotNull SegmentIdnewSegmentId(long msb, long lsb)Provide aSegmentIdrepresented by the given MSB/LSB pair.
-
-
-
Method Detail
-
getSegmentIdCount
int getSegmentIdCount()
- Returns:
- The number of distinct segment ids this provider is tracking.
-
newSegmentId
@NotNull @NotNull SegmentId newSegmentId(long msb, long lsb)
Provide aSegmentIdrepresented by the given MSB/LSB pair.- Parameters:
msb- The most significant bits of theSegmentId.lsb- The least significant bits of theSegmentId.- Returns:
- A non-
nullinstance ofSegmentId.
-
newDataSegmentId
@NotNull @NotNull SegmentId newDataSegmentId()
Provide aSegmentIdfor a segment of type "bulk".- Returns:
- A non-
nullinstance ofSegmentId.
-
newBulkSegmentId
@NotNull @NotNull SegmentId newBulkSegmentId()
Provide aSegmentIdfor a segment of type "data".- Returns:
- A non-
nullinstance ofSegmentId.
-
-