
public interface Scoped
| Modifier and Type | Method and Description |
|---|---|
default <T> T |
runAs(Callable<T> action)
Run an action under this identity.
|
default void |
runAs(Runnable action)
Run an action under this identity.
|
default <R> R |
runAsAction(PrivilegedAction<R> action)
Run an action under this identity.
|
default <T,U> boolean |
runAsBiPredicate(BiPredicate<T,U> predicate,
T param1,
U param2)
Run an action under this identity.
|
<T,U> void |
runAsConsumer(BiConsumer<T,U> action,
T parameter1,
U parameter2)
Run an action under this identity.
|
default <T> void |
runAsConsumer(Consumer<T> action,
T parameter)
Run an action under this identity.
|
<T,U,E extends Exception> |
runAsConsumerEx(org.wildfly.common.function.ExceptionBiConsumer<T,U,E> action,
T parameter1,
U parameter2)
Run an action under this identity.
|
default <T,E extends Exception> |
runAsConsumerEx(org.wildfly.common.function.ExceptionConsumer<T,E> action,
T parameter)
Run an action under this identity.
|
default <T,U,E extends Exception> |
runAsExBiPredicate(org.wildfly.common.function.ExceptionBiPredicate<T,U,E> predicate,
T param1,
U param2)
Run an action under this identity.
|
default <R> R |
runAsExceptionAction(PrivilegedExceptionAction<R> action)
Run an action under this identity.
|
default <T,E extends Exception> |
runAsExIntFunction(org.wildfly.common.function.ExceptionIntFunction<T,E> action,
int value)
Run an action under this identity.
|
default <T,E extends Exception> |
runAsExLongFunction(org.wildfly.common.function.ExceptionLongFunction<T,E> action,
long value)
Run an action under this identity.
|
default <T,E extends Exception> |
runAsExPredicate(org.wildfly.common.function.ExceptionPredicate<T,E> predicate,
T param)
Run an action under this identity.
|
<T,U,R> R |
runAsFunction(BiFunction<T,U,R> action,
T parameter1,
U parameter2)
Run an action under this identity.
|
default <T,R> R |
runAsFunction(Function<T,R> action,
T parameter)
Run an action under this identity.
|
<T,U,R,E extends Exception> |
runAsFunctionEx(org.wildfly.common.function.ExceptionBiFunction<T,U,R,E> action,
T parameter1,
U parameter2)
Run an action under this identity.
|
default <T,R,E extends Exception> |
runAsFunctionEx(org.wildfly.common.function.ExceptionFunction<T,R,E> action,
T parameter)
Run an action under this identity.
|
default <T> T |
runAsIntFunction(IntFunction<T> action,
int value)
Run an action under this identity.
|
default <T> T |
runAsLongFunction(LongFunction<T> action,
long value)
Run an action under this identity.
|
<T> void |
runAsObjIntConsumer(ObjIntConsumer<T> action,
T parameter1,
int parameter2)
Run an action under this identity.
|
<T,E extends Exception> |
runAsObjIntConsumerEx(org.wildfly.common.function.ExceptionObjIntConsumer<T,E> action,
T parameter1,
int parameter2)
Run an action under this identity.
|
default <T> boolean |
runAsPredicate(Predicate<T> predicate,
T param)
Run an action under this identity.
|
default <T> T |
runAsSupplier(Supplier<T> action)
Run an action under this identity.
|
default <T,E extends Exception> |
runAsSupplierEx(org.wildfly.common.function.ExceptionSupplier<T,E> action)
Run an action under this identity.
|
default void runAs(Runnable action)
action - the action to rundefault <T> T runAs(Callable<T> action) throws Exception
T - the action return typeaction - the action to runnull)Exception - if the action failsdefault <T,R> R runAsFunction(Function<T,R> action, T parameter)
R - the action return typeT - the action parameter typeparameter - the parameter to pass to the actionaction - the action to runnull)<T,U,R> R runAsFunction(BiFunction<T,U,R> action, T parameter1, U parameter2)
R - the action return typeT - the action first parameter typeU - the action second parameter typeparameter1 - the first parameter to pass to the actionparameter2 - the second parameter to pass to the actionaction - the action to runnull)default <T> void runAsConsumer(Consumer<T> action, T parameter)
T - the action parameter typeparameter - the parameter to pass to the actionaction - the action to run<T,U> void runAsConsumer(BiConsumer<T,U> action, T parameter1, U parameter2)
T - the action first parameter typeU - the action second parameter typeparameter1 - the first parameter to pass to the actionparameter2 - the second parameter to pass to the actionaction - the action to run<T> void runAsObjIntConsumer(ObjIntConsumer<T> action, T parameter1, int parameter2)
T - the action first parameter typeparameter1 - the first parameter to pass to the actionparameter2 - the second parameter to pass to the actionaction - the action to rundefault <T> T runAsSupplier(Supplier<T> action)
T - the action return typeaction - the action to runnull)default <T,R,E extends Exception> R runAsFunctionEx(org.wildfly.common.function.ExceptionFunction<T,R,E> action, T parameter) throws E extends Exception
R - the action return typeT - the action parameter typeE - the action exception typeparameter - the parameter to pass to the actionaction - the action to runnull)E - if the action throws this exceptionE extends Exception<T,U,R,E extends Exception> R runAsFunctionEx(org.wildfly.common.function.ExceptionBiFunction<T,U,R,E> action, T parameter1, U parameter2) throws E extends Exception
R - the action return typeT - the action first parameter typeU - the action second parameter typeE - the action exception typeparameter1 - the first parameter to pass to the actionparameter2 - the second parameter to pass to the actionaction - the action to runnull)E - if the action throws this exceptionE extends Exceptiondefault <T,E extends Exception> void runAsConsumerEx(org.wildfly.common.function.ExceptionConsumer<T,E> action, T parameter) throws E extends Exception
T - the action parameter typeE - the action exception typeparameter - the parameter to pass to the actionaction - the action to runE - if the action throws this exceptionE extends Exception<T,U,E extends Exception> void runAsConsumerEx(org.wildfly.common.function.ExceptionBiConsumer<T,U,E> action, T parameter1, U parameter2) throws E extends Exception
T - the action first parameter typeU - the action second parameter typeE - the action exception typeparameter1 - the first parameter to pass to the actionparameter2 - the second parameter to pass to the actionaction - the action to runE - if the action throws this exceptionE extends Exception<T,E extends Exception> void runAsObjIntConsumerEx(org.wildfly.common.function.ExceptionObjIntConsumer<T,E> action, T parameter1, int parameter2) throws E extends Exception
T - the action first parameter typeE - the action exception typeparameter1 - the first parameter to pass to the actionparameter2 - the second parameter to pass to the actionaction - the action to runE - if the action throws this exceptionE extends Exceptiondefault <T,E extends Exception> T runAsSupplierEx(org.wildfly.common.function.ExceptionSupplier<T,E> action) throws E extends Exception
T - the action return typeE - the action exception typeaction - the action to runnull)E - if the action throws this exceptionE extends Exceptiondefault <R> R runAsAction(PrivilegedAction<R> action)
R - the return value typeaction - the task to run (must not be null)default <R> R runAsExceptionAction(PrivilegedExceptionAction<R> action) throws PrivilegedActionException
R - the return value typeaction - the task to run (must not be null)PrivilegedActionException - if the action fails with an exceptiondefault <T,U> boolean runAsBiPredicate(BiPredicate<T,U> predicate, T param1, U param2)
T - the first parameter typeU - the second parameter typepredicate - the task to run (must not be null)param1 - the first parameter to pass to the taskparam2 - the second parameter to pass to the taskUnsupportedOperationException - if this operation is not implementeddefault <T,U,E extends Exception> boolean runAsExBiPredicate(org.wildfly.common.function.ExceptionBiPredicate<T,U,E> predicate, T param1, U param2) throws E extends Exception
T - the first parameter typeU - the second parameter typeE - the exception typepredicate - the task to run (must not be null)param1 - the first parameter to pass to the taskparam2 - the second parameter to pass to the taskE - if an exception occurs in the taskUnsupportedOperationException - if this operation is not implementedE extends Exceptiondefault <T> boolean runAsPredicate(Predicate<T> predicate, T param)
T - the first parameter typepredicate - the task to run (must not be null)param - the parameter to pass to the taskdefault <T,E extends Exception> boolean runAsExPredicate(org.wildfly.common.function.ExceptionPredicate<T,E> predicate, T param) throws E extends Exception
T - the first parameter typeE - the exception typepredicate - the task to run (must not be null)param - the parameter to pass to the taskE - if an exception occurs in the taskE extends Exceptiondefault <T> T runAsIntFunction(IntFunction<T> action, int value)
T - the return value typeaction - the task to run (must not be null)value - the parameter to pass to the taskdefault <T,E extends Exception> T runAsExIntFunction(org.wildfly.common.function.ExceptionIntFunction<T,E> action, int value) throws E extends Exception
T - the return value typeE - the exception typeaction - the task to run (must not be null)value - the parameter to pass to the taskE - if an exception occurs in the taskE extends Exceptiondefault <T> T runAsLongFunction(LongFunction<T> action, long value)
T - the return value typeaction - the task to run (must not be null)value - the parameter to pass to the taskdefault <T,E extends Exception> T runAsExLongFunction(org.wildfly.common.function.ExceptionLongFunction<T,E> action, long value) throws E extends Exception
T - the return value typeE - the exception typeaction - the task to run (must not be null)value - the parameter to pass to the taskE - if an exception occurs in the taskE extends ExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.