Class ProgressContext

  • All Implemented Interfaces:

    
    public class ProgressContext
    
                        
    Since:

    2021-03-15

    Author:

    trydofor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class ProgressContext.Bar
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static ProgressContext.Bar get(Object key) Get the progress bar by outside key and ttl second.
      static ProgressContext.Bar gen(Object key, int second) Generate a progress bar by outside key and ttl second
      static ProgressContext.Bar gen(Object key, long started, int second) Generate a progress bar by outside key, started time and ttl second
      static String key(long started, int second) build an inside key by started time and ttl second
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProgressContext

        ProgressContext()
    • Method Detail

      • gen

        @NotNull() static ProgressContext.Bar gen(Object key, long started, int second)

        Generate a progress bar by outside key, started time and ttl second

      • key

        @NotNull() static String key(long started, int second)

        build an inside key by started time and ttl second