Package org.wildfly.extension.io
Class WorkerService
- java.lang.Object
-
- org.wildfly.extension.io.WorkerService
-
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<org.xnio.XnioWorker>,org.jboss.msc.value.Value<org.xnio.XnioWorker>
public final class WorkerService extends Object implements org.jboss.msc.service.Service<org.xnio.XnioWorker>
- Author:
- Tomaz Cerar (c) 2012 Red Hat Inc., Richard Opalka
-
-
Constructor Summary
Constructors Constructor Description WorkerService(Consumer<org.xnio.XnioWorker> workerConsumer, Supplier<ExecutorService> executorSupplier, org.xnio.XnioWorker.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xnio.XnioWorkergetValue()voidstart(org.jboss.msc.service.StartContext startContext)voidstop(org.jboss.msc.service.StopContext context)
-
-
-
Constructor Detail
-
WorkerService
public WorkerService(Consumer<org.xnio.XnioWorker> workerConsumer, Supplier<ExecutorService> executorSupplier, org.xnio.XnioWorker.Builder builder)
-
-
Method Detail
-
start
public void start(org.jboss.msc.service.StartContext startContext)
- Specified by:
startin interfaceorg.jboss.msc.Service- Specified by:
startin interfaceorg.jboss.msc.service.Service<org.xnio.XnioWorker>
-
stop
public void stop(org.jboss.msc.service.StopContext context)
- Specified by:
stopin interfaceorg.jboss.msc.Service- Specified by:
stopin interfaceorg.jboss.msc.service.Service<org.xnio.XnioWorker>
-
getValue
public org.xnio.XnioWorker getValue() throws IllegalStateException, IllegalArgumentException- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<org.xnio.XnioWorker>- Throws:
IllegalStateExceptionIllegalArgumentException
-
-