public class ServiceValueExecutor<T> extends Object implements ServiceValueCaptor<T>, FunctionExecutor<T>
| Constructor and Description |
|---|
ServiceValueExecutor(org.jboss.msc.service.ServiceName name) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(T value) |
<R,E extends Exception> |
execute(org.wildfly.common.function.ExceptionFunction<T,R,E> function)
Executes the given function.
|
org.jboss.msc.service.ServiceName |
getServiceName() |
public ServiceValueExecutor(org.jboss.msc.service.ServiceName name)
public org.jboss.msc.service.ServiceName getServiceName()
getServiceName in interface ServiceNameProviderpublic <R,E extends Exception> R execute(org.wildfly.common.function.ExceptionFunction<T,R,E> function) throws E extends Exception
FunctionExecutorexecute in interface FunctionExecutor<T>R - the return typeE - the exception typefunction - a function to executeE - if the function fails to executeE extends ExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.