Class Ticker

    • Field Detail

      • ticker

        java.time.Instant ticker
      • ttl

        java.time.Duration ttl
    • Method Detail

      • tick

        public void tick()
                  throws JsonLdError
        Description copied from class: ProcessingRuntime
        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.
        Overrides:
        tick in class ProcessingRuntime
        Throws:
        JsonLdError - if a processing has exceeded
      • resetTicker

        public void resetTicker()
        Description copied from class: ProcessingRuntime
        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.
        Overrides:
        resetTicker in class ProcessingRuntime