Class LinearDataRangeTooLargeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
velox.api.layer1.dynamichistory.exceptions.LinearDataRangeTooLargeException
All Implemented Interfaces:
Serializable

public class LinearDataRangeTooLargeException extends RuntimeException
Thrown (as the cause of the returned future's failure) when a getLinearData request resolves to more blocks than DynamicHistoryAccessInterface.LINEAR_DATA_MAX_BLOCKS_PER_REQUEST. Nothing is fetched in that case. The fix is on the caller's side: request a narrower time range, or the same range at a coarser interval (the catalog returned for MetadataType.linearMetadataType() lists the intervals available).
See Also:
  • Constructor Details

    • LinearDataRangeTooLargeException

      public LinearDataRangeTooLargeException(long requestedBlocks, long maxBlocks, String interval)
  • Method Details

    • getRequestedBlocks

      public long getRequestedBlocks()
      Number of blocks the requested time range resolved to.
    • getMaxBlocks

      public long getMaxBlocks()
      The limit that was exceeded.
    • getInterval

      public String getInterval()
      The interval meta string of the request.