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 aChunkand 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.longgetTimestamp()
-
-
-
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.ExceptionPerform the chunk loading.- Specified by:
callin 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
-
-