Java Code Examples for jdk.jfr.internal.RequestEngine#removeHook()
The following examples show how to use
jdk.jfr.internal.RequestEngine#removeHook() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FlightRecorder.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
/** * Removes a callback hook for a periodic event. * * @param hook the hook to remove, not {@code null} * @return {@code true} if hook is removed, {@code false} otherwise * @throws SecurityException if a security manager exists and the caller * does not have {@code FlightRecorderPermission("registerEvent")} */ public static boolean removePeriodicEvent(Runnable hook) throws SecurityException { Objects.requireNonNull(hook); Utils.checkRegisterPermission(); if (JVMSupport.isNotAvailable()) { return false; } return RequestEngine.removeHook(hook); }
Example 2
Source File: FlightRecorder.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Removes a hook for a periodic event. * * @param hook the hook to remove, not {@code null} * @return {@code true} if hook is removed, {@code false} otherwise * @throws SecurityException if a security manager exists and the caller * does not have {@code FlightRecorderPermission("registerEvent")} */ public static boolean removePeriodicEvent(Runnable hook) throws SecurityException { Objects.requireNonNull(hook); Utils.checkRegisterPermission(); if (JVMSupport.isNotAvailable()) { return false; } return RequestEngine.removeHook(hook); }
Example 3
Source File: FlightRecorder.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Removes a hook for a periodic event. * * @param hook the hook to remove, not {@code null} * @return {@code true} if hook is removed, {@code false} otherwise * @throws SecurityException if a security manager exists and the caller * does not have {@code FlightRecorderPermission("registerEvent")} */ public static boolean removePeriodicEvent(Runnable hook) throws SecurityException { Objects.requireNonNull(hook); Utils.checkRegisterPermission(); if (JVMSupport.isNotAvailable()) { return false; } return RequestEngine.removeHook(hook); }
Example 4
Source File: JDKEvents.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
public static void remove() { RequestEngine.removeHook(JDKEvents::emitExceptionStatistics); }
Example 5
Source File: JDKEvents.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public static void remove() { RequestEngine.removeHook(JDKEvents::emitExceptionStatistics); }
Example 6
Source File: JDKEvents.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public static void remove() { RequestEngine.removeHook(JDKEvents::emitExceptionStatistics); }