Class InVmAccess


  • public final class InVmAccess
    extends Object
    Utility class for executing in-vm calls.
    Author:
    Darran Lofthouse
    • Method Detail

      • runInVm

        public static <T> T runInVm​(PrivilegedAction<T> action)
        Run an action as an in-vm action.
        Type Parameters:
        T - the action return type
        Parameters:
        action - the action to run
        Returns:
        the action result (may be null)
      • isInVmCall

        public static boolean isInVmCall()
        Is the current call an in-vm call?
        Returns:
        true if the current call is an in-vm call, false otherwise.