public class FunctionalService<T,V> extends Object implements org.jboss.msc.Service
| Constructor and Description |
|---|
FunctionalService(Consumer<V> consumer,
Function<T,V> mapper,
Supplier<T> factory) |
FunctionalService(Consumer<V> consumer,
Function<T,V> mapper,
Supplier<T> factory,
Consumer<T> destroyer) |
| Modifier and Type | Method and Description |
|---|---|
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
public FunctionalService(Consumer<V> consumer, Function<T,V> mapper, Supplier<T> factory)
public void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.Serviceorg.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.ServiceCopyright © 2020 JBoss by Red Hat. All rights reserved.