Class ProcessingRuntime


  • public class ProcessingRuntime
    extends Object
    A runtime context used during a transformation processing.
    Since:
    1.4.0
    • Constructor Detail

      • ProcessingRuntime

        protected ProcessingRuntime​(JsonLdOptions options)
    • Method Detail

      • tick

        public void tick()
                  throws JsonLdError
        Called in multiple places during a processing to check processing timeout if set. Does nothing if timeout is not set. When hit for the first time a timestamp is set, otherwise a duration is decreased by timestamps difference.
        Throws:
        JsonLdError - if a processing has exceeded
      • resetTicker

        public void resetTicker()
        Resume ticker, a next ping decreases remaining time if timeout is set. Is used after an external method call, to exclude time consumed by the external call. e.g. when calling HTTP client. Does nothing if timeout is not set.
      • isUriValidation

        public boolean isUriValidation()
      • isV10

        public boolean isV10()
      • isV11

        public boolean isV11()
      • getContextCache

        public Cache<String,​jakarta.json.JsonValue> getContextCache()
      • isRdfStar

        public boolean isRdfStar()
      • isNumericId

        public boolean isNumericId()