Class NextIdSegmentExpiredException

All Implemented Interfaces:
Serializable

public class NextIdSegmentExpiredException extends CosIdException
Exception thrown when a next ID segment is invalid.

This exception indicates that the provided next segment has an offset that is not greater than the current segment's offset, which would cause ID conflicts or duplication.

See Also:
  • Constructor Details

    • NextIdSegmentExpiredException

      public NextIdSegmentExpiredException(IdSegment current, IdSegment next)
      Creates a new exception.
      Parameters:
      current - the current segment
      next - the invalid next segment
  • Method Details

    • getCurrent

      public IdSegment getCurrent()
      Gets the current segment.
      Returns:
      the current segment
    • getNext

      public IdSegment getNext()
      Gets the invalid next segment.
      Returns:
      the next segment