You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2022/03/16 06:02:40 UTC

[sling-org-apache-sling-api] 01/02: SLING-11206 : Add support for buidling RequestProgressTracker

This is an automated email from the ASF dual-hosted git repository.

cziegeler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-api.git

commit bccd908b35d4516fb318f8f566da25ae2665bc3b
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Wed Mar 16 06:59:06 2022 +0100

    SLING-11206 : Add support for buidling RequestProgressTracker
---
 .../java/org/apache/sling/api/request/RequestProgressTracker.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/api/request/RequestProgressTracker.java b/src/main/java/org/apache/sling/api/request/RequestProgressTracker.java
index 1324717..e1e4e64 100644
--- a/src/main/java/org/apache/sling/api/request/RequestProgressTracker.java
+++ b/src/main/java/org/apache/sling/api/request/RequestProgressTracker.java
@@ -147,5 +147,7 @@ public interface RequestProgressTracker {
      * Get the duration in nano seconds.
      * @since 2.6.0 (Sling API Bundle 2.25.0)
      */
-    long getDuration();
+    default long getDuration() {
+        return 0;
+    }
 }