Class ReportCacheInputStream

java.lang.Object
java.io.InputStream
com.inet.lib.io.FastByteArrayInputStream
com.inet.lib.io.ChunkedInputStream
com.inet.report.cache.ReportCacheInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class ReportCacheInputStream extends com.inet.lib.io.ChunkedInputStream
A stream result from a report in the cache.
Since:
17.0
  • Constructor Details

    • ReportCacheInputStream

      public ReportCacheInputStream(ReportCacheKey key, int timeout)
      Create new instance and fetch the first page.
      Parameters:
      key - the key for the report
      timeout - the timeout on access the cache API in milliseconds, 0 means unlimited wait.
      Since:
      17.0
  • Method Details

    • nextChunk

      protected byte[] nextChunk()
      Specified by:
      nextChunk in class com.inet.lib.io.ChunkedInputStream