public final class InVmAccess extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isInVmCall()
Is the current call an in-vm call?
|
static <T> T |
runInVm(PrivilegedAction<T> action)
Run an action as an in-vm action.
|
static <T> T |
runInVm(PrivilegedExceptionAction<T> action)
Run an action as an in-vm action.
|
public static <T> T runInVm(PrivilegedAction<T> action)
T - the action return typeaction - the action to runnull)public static <T> T runInVm(PrivilegedExceptionAction<T> action) throws PrivilegedActionException
T - the action return typeaction - the action to runnull)PrivilegedActionException - if the action failspublic static boolean isInVmCall()
true if the current call is an in-vm call, false otherwise.Copyright © 2017 JBoss by Red Hat. All rights reserved.