Class

eu.shiftforward.apso.io

InsistentInputStream

Related Doc: package io

Permalink

class InsistentInputStream extends InputStream with Logging

A InputStream that wraps another InputStream, retrying failed reads. This is useful for input streams that can have transient failures (eg HTTP input streams).

Linear Supertypes
Logging, InputStream, Closeable, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InsistentInputStream
  2. Logging
  3. InputStream
  4. Closeable
  5. AutoCloseable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new InsistentInputStream(streamBuilder: () ⇒ InputStream, maxRetries: Int = 10, backoff: Option[FiniteDuration] = None)

    Permalink

    streamBuilder

    function that returns a new stream.

    maxRetries

    maximum number of times to retry a read

    backoff

    optional duration to wait between retries

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def available(): Int

    Permalink
    Definition Classes
    InsistentInputStream → InputStream
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def close(): Unit

    Permalink
    Definition Classes
    InsistentInputStream → InputStream → Closeable → AutoCloseable
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. lazy val log: Logger

    Permalink

    The Logger object.

    The Logger object. This logger will have the same name as the concrete class into which this trait is mixed-in.

    Definition Classes
    Logging
  15. def mark(arg0: Int): Unit

    Permalink
    Definition Classes
    InputStream
  16. def markSupported(): Boolean

    Permalink
    Definition Classes
    InputStream
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. def read(b: Array[Byte], off: Int, len: Int): Int

    Permalink
    Definition Classes
    InsistentInputStream → InputStream
  21. def read(b: Array[Byte]): Int

    Permalink
    Definition Classes
    InsistentInputStream → InputStream
  22. def read(): Int

    Permalink
    Definition Classes
    InsistentInputStream → InputStream
  23. def reset(): Unit

    Permalink
    Definition Classes
    InputStream
    Annotations
    @throws( classOf[java.io.IOException] )
  24. def skip(n: Long): Long

    Permalink
    Definition Classes
    InsistentInputStream → InputStream
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Logging

Inherited from InputStream

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped