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.
|
<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.
|
<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.
|
<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> 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 Exception
default <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 Exception
default <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 Exception
Copyright © 2018 JBoss by Red Hat. All rights reserved.