Interface IChunkLoader

  • All Superinterfaces:
    java.util.concurrent.Callable<byte[]>
    All Known Implementing Classes:
    ChunkLoaderV0, ChunkLoaderV1

    public interface IChunkLoader
    extends java.util.concurrent.Callable<byte[]>
    A chunk loader takes a Chunk and loads all the events from it.
    • Method Detail

      • getTimestamp

        long getTimestamp()
        Returns:
        The chunk timestamp. The unit is not specified, it might be milliseconds or nanoseconds since 1970, but the important thing is that it is unique for every chunk in a recording.
      • call

        byte[] call()
             throws java.lang.Exception
        Perform the chunk loading.
        Specified by:
        call in interface java.util.concurrent.Callable<byte[]>
        Returns:
        The byte array that was backing the chunk data. After returning this, the chunk loader is done with the array and it may be reused for a new chunk.
        Throws:
        java.lang.Exception