public class ChunkLoaderV1 extends java.lang.Object implements IChunkLoader
Modifier and Type | Field and Description |
---|---|
private static long |
CONSTANT_POOL_EVENT_TYPE |
private LoaderContext |
context |
private byte[] |
data |
private ChunkStructure |
header |
Constructor and Description |
---|
ChunkLoaderV1(ChunkStructure header,
byte[] data,
LoaderContext context) |
Modifier and Type | Method and Description |
---|---|
byte[] |
call()
Perform the chunk loading.
|
static IChunkLoader |
create(Chunk input,
LoaderContext context) |
static ChunkInfo |
getInfo(Chunk input,
long position) |
long |
getTimestamp() |
private static long |
readConstantPoolEvent(IDataInput input,
TypeManager manager) |
private static final long CONSTANT_POOL_EVENT_TYPE
private final ChunkStructure header
private final byte[] data
private final LoaderContext context
public ChunkLoaderV1(ChunkStructure header, byte[] data, LoaderContext context)
public byte[] call() throws java.lang.Exception
IChunkLoader
call
in interface java.util.concurrent.Callable<byte[]>
call
in interface IChunkLoader
java.lang.Exception
private static long readConstantPoolEvent(IDataInput input, TypeManager manager) throws java.io.IOException, InvalidJfrFileException
java.io.IOException
InvalidJfrFileException
public static IChunkLoader create(Chunk input, LoaderContext context) throws java.io.IOException, CouldNotLoadRecordingException
java.io.IOException
CouldNotLoadRecordingException
public static ChunkInfo getInfo(Chunk input, long position) throws java.io.IOException, CouldNotLoadRecordingException
java.io.IOException
CouldNotLoadRecordingException
public long getTimestamp()
getTimestamp
in interface IChunkLoader