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 aChunk
and loads all the events from it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
call()
Perform the chunk loading.long
getTimestamp()
-
-
-
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 interfacejava.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
-
-