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
  • Field Summary

    Fields inherited from interface org.jboss.msc.service.Service

    NULL
  • Constructor Summary

    Constructors
    Constructor
    Description
    WorkerService(Consumer<org.xnio.XnioWorker> workerConsumer, Supplier<Executor> executorSupplier, org.xnio.XnioWorker.Builder builder)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.xnio.XnioWorker
     
    void
    start(org.jboss.msc.service.StartContext startContext)
     
    void
    stop(org.jboss.msc.service.StopContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WorkerService

      public WorkerService(Consumer<org.xnio.XnioWorker> workerConsumer, Supplier<Executor> executorSupplier, org.xnio.XnioWorker.Builder builder)
  • Method Details

    • start

      public void start(org.jboss.msc.service.StartContext startContext)
      Specified by:
      start in interface org.jboss.msc.Service
    • stop

      public void stop(org.jboss.msc.service.StopContext context)
      Specified by:
      stop in interface org.jboss.msc.Service
    • getValue

      public org.xnio.XnioWorker getValue() throws IllegalStateException, IllegalArgumentException
      Specified by:
      getValue in interface org.jboss.msc.value.Value<org.xnio.XnioWorker>
      Throws:
      IllegalStateException
      IllegalArgumentException