class InteractiveProgressBar extends ProgressBar
A progress bar that renders updates at a fixed duration interval until it's canceled.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- InteractiveProgressBar
- ProgressBar
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new InteractiveProgressBar(out: Writer, renderer: ProgressRenderer, intervalDuration: Duration = Duration.ofMillis(16), terminal: Terminals = new Terminals(Tput.system), reportFailure: (Throwable) => Unit = e => e.printStackTrace(System.out), isDynamicPartEnabled: Boolean = true)
- out
the output stream to emit the progress bar to. This progress bar should have exclusive access to the output stream between the start()/stop() methods. There are no guarantees what happens if this output stream is used concurrently while this progress bar is running.
- renderer
pretty-printer for this progress bar. The
renderStep()method runs on a single thread and should not take longer than theintervalDurationtime to complete.- intervalDuration
the duration for which
- terminal
the active part of the progress bar is truncated by the screen width/height constraints to avoid wonky output.
- reportFailure
callback in case of any errors, by default prints the stack trace to
System.out.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isActive(): Boolean
- def isAfterStop(): Boolean
- def isBeforeStart(): Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def start(): Unit
- Definition Classes
- InteractiveProgressBar → ProgressBar
- def stop(): Unit
- Definition Classes
- InteractiveProgressBar → ProgressBar
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()