Class LinearDataRangeTooLargeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
velox.api.layer1.dynamichistory.exceptions.LinearDataRangeTooLargeException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionLinearDataRangeTooLargeException(long requestedBlocks, long maxBlocks, String interval) -
Method Summary
Modifier and TypeMethodDescriptionThe interval meta string of the request.longThe limit that was exceeded.longNumber of blocks the requested time range resolved to.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LinearDataRangeTooLargeException
-
-
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
The interval meta string of the request.
-