APIdia Launch Partner
Top Fields Constructors Methods
jdk.jfr.internal.event

public final Class EventWriter

extends Object
Class Inheritance
Imports
jdk.internal.misc.Unsafe, jdk.jfr.internal.Bits, .StringPool, .JVM, .PlatformEventType, jdk.jfr.internal.consumer.StringParser

Field Summary

Modifier and TypeField and Description
private long
private PlatformEventType
pack-priv boolean
private boolean
private static final long
private long
private boolean
private long
private final long
private static final Unsafe
private boolean

Constructor Summary

AccessConstructor and Description
private
private
EventWriter(long startPos, long maxPos, long threadID, boolean valid, boolean pinVirtualThread, boolean excluded)

Method Summary

Modifier and TypeMethod and Description
public boolean
beginEvent(EventConfiguration configuration, long typeId)

public boolean
private void
private void
flush(int usedSize, int requestedSize)

public static EventWriter
private boolean
isValidForSize(int requestedSize)

private static int
public void
putBoolean(boolean i)

public void
putByte(byte i)

public void
putChar(char v)

public void
putClass(Class<?> aClass)

public void
putDouble(double i)

public void
public void
putFloat(float i)

public void
putInt(int v)

public void
putLong(long v)

public void
putShort(short v)

public void
public void
private void
public void
putThread(Thread athread)

private void
private void
private void
private void
private void
public void
private int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

currentPositionback to summary
private long currentPosition
eventTypeback to summary
private PlatformEventType eventType
excludedback to summary
pack-priv boolean excluded
largeSizeback to summary
private boolean largeSize
MAX_EVENT_SIZEback to summary
private static final long MAX_EVENT_SIZE
maxPositionback to summary
private long maxPosition
pinVirtualThreadback to summary
private boolean pinVirtualThread
startPositionback to summary
private long startPosition
threadIDback to summary
private final long threadID
unsafeback to summary
private static final Unsafe unsafe
validback to summary
private boolean valid

Constructor Detail

EventWriterback to summary
private EventWriter()
EventWriterback to summary
private EventWriter(long startPos, long maxPos, long threadID, boolean valid, boolean pinVirtualThread, boolean excluded)

Method Detail

beginEventback to summary
public boolean beginEvent(EventConfiguration configuration, long typeId)
endEventback to summary
public boolean endEvent()
flushback to summary
private void flush()
flushback to summary
private void flush(int usedSize, int requestedSize)
getEventWriterback to summary
public static EventWriter getEventWriter()
isValidForSizeback to summary
private boolean isValidForSize(int requestedSize)
makePaddedIntback to summary
private static int makePaddedInt(int v)
putBooleanback to summary
public void putBoolean(boolean i)
putByteback to summary
public void putByte(byte i)
putCharback to summary
public void putChar(char v)
putClassback to summary
public void putClass(Class<?> aClass)
putDoubleback to summary
public void putDouble(double i)
putEventThreadback to summary
public void putEventThread()
putFloatback to summary
public void putFloat(float i)
putIntback to summary
public void putInt(int v)
putLongback to summary
public void putLong(long v)
putShortback to summary
public void putShort(short v)
putStackTraceback to summary
public void putStackTrace()
putStringback to summary
public void putString(String s)
putStringValueback to summary
private void putStringValue(String s)
putThreadback to summary
public void putThread(Thread athread)
putUncheckedByteback to summary
private void putUncheckedByte(byte i)
putUncheckedCharback to summary
private void putUncheckedChar(char v)
putUncheckedIntback to summary
private void putUncheckedInt(int v)
putUncheckedLongback to summary
private void putUncheckedLong(long v)
reserveEventSizeFieldback to summary
private void reserveEventSizeField()
resetback to summary
public void reset()
usedSizeback to summary
private int usedSize()