Package anbxj
Class Crypto_Event
java.lang.Object
jdk.internal.event.Event
jdk.jfr.Event
anbxj.Crypto_Event
A custom Java Flight Recorder (JFR) event that captures the execution time
and context of a single cryptographic operation inside the AnBx library.
Instances of this event are created and committed by
AnB_Crypto_Wrapper.flushJfr() when execution-time logging is enabled
via AnB_Crypto_Wrapper.setLoggingExecTimeEnabled(boolean).
Each event records:
- the name of the timed method (e.g.,
"encrypt","sign"), - the raw duration in nanoseconds,
- an implementation-specific detail string (e.g.,
"AES/GCM/128"), - the protocol session ID (if set), and
- the protocol step number (if set).
The event is registered under the JFR name anbxj.Crypto_Event
and can be analysed in JDK Mission Control or any other JFR consumer to
compute statistics such as mean duration, standard deviation, and
percentiles per operation type, session, or step.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCrypto_Event(String method, long durationNanos, String details, long sessionId, int step) Creates a new event with the given method name, duration, detail, session ID, and step number. -
Method Summary
-
Constructor Details
-
Crypto_Event
Creates a new event with the given method name, duration, detail, session ID, and step number.- Parameters:
method- the name of the cryptographic method (must not benull)durationNanos- the execution time in nanosecondsdetails- a compact description of the operation, ornullsessionId- the protocol session ID, or-1if not applicablestep- the protocol step number, or-1if not applicable
-