Class SimpleCycleProgress

  • All Implemented Interfaces:
    eu.xenit.alfresco.healthprocessor.reporter.api.CycleProgress

    public class SimpleCycleProgress
    extends java.lang.Object
    implements eu.xenit.alfresco.healthprocessor.reporter.api.CycleProgress
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleCycleProgress​(long startId, long endId, java.util.function.LongSupplier currentId)  
      SimpleCycleProgress​(long startId, java.time.Instant startTime, long endId, java.util.function.LongSupplier currentId)  
    • Constructor Detail

      • SimpleCycleProgress

        public SimpleCycleProgress​(long startId,
                                   long endId,
                                   java.util.function.LongSupplier currentId)
      • SimpleCycleProgress

        public SimpleCycleProgress​(long startId,
                                   java.time.Instant startTime,
                                   long endId,
                                   java.util.function.LongSupplier currentId)
    • Method Detail

      • isUnknown

        public boolean isUnknown()
        Specified by:
        isUnknown in interface eu.xenit.alfresco.healthprocessor.reporter.api.CycleProgress
      • getProgress

        public float getProgress()
        Specified by:
        getProgress in interface eu.xenit.alfresco.healthprocessor.reporter.api.CycleProgress
      • getElapsed

        @Nonnull
        public java.time.Duration getElapsed()
        Specified by:
        getElapsed in interface eu.xenit.alfresco.healthprocessor.reporter.api.CycleProgress
      • getEstimatedCompletion

        @Nonnull
        public java.util.Optional<java.time.Duration> getEstimatedCompletion()
        Specified by:
        getEstimatedCompletion in interface eu.xenit.alfresco.healthprocessor.reporter.api.CycleProgress