Class ChunkLoaderV0

  • All Implemented Interfaces:
    java.util.concurrent.Callable<byte[]>, org.openjdk.jmc.flightrecorder.internal.IChunkLoader

    public class ChunkLoaderV0
    extends java.lang.Object
    implements org.openjdk.jmc.flightrecorder.internal.IChunkLoader
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] call()
      Perform the chunk loading.
      static org.openjdk.jmc.flightrecorder.internal.IChunkLoader create​(Chunk input, LoaderContext context)  
      static org.openjdk.jmc.flightrecorder.internal.ChunkInfo getInfo​(Chunk input, long position)  
      long getTimestamp()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • call

        public byte[] call()
                    throws java.lang.Exception
        Description copied from interface: org.openjdk.jmc.flightrecorder.internal.IChunkLoader
        Perform the chunk loading.
        Specified by:
        call in interface java.util.concurrent.Callable<byte[]>
        Specified by:
        call in interface org.openjdk.jmc.flightrecorder.internal.IChunkLoader
        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
      • getTimestamp

        public long getTimestamp()
        Specified by:
        getTimestamp in interface org.openjdk.jmc.flightrecorder.internal.IChunkLoader
        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.