Class JettyServer

java.lang.Object
spark.embeddedserver.jetty.JettyServer
All Implemented Interfaces:
JettyServerFactory

class JettyServer extends Object implements JettyServerFactory
Creates Jetty Server instances.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.jetty.server.Server
    create(int maxThreads, int minThreads, int threadTimeoutMillis)
    Creates a Jetty server.
    org.eclipse.jetty.server.Server
    create(org.eclipse.jetty.util.thread.ThreadPool threadPool)
    Creates a Jetty server with supplied thread pool

    Methods inherited from class java.lang.Object

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

    • JettyServer

      JettyServer()
  • Method Details

    • create

      public org.eclipse.jetty.server.Server create(int maxThreads, int minThreads, int threadTimeoutMillis)
      Creates a Jetty server.
      Specified by:
      create in interface JettyServerFactory
      Parameters:
      maxThreads - maxThreads
      minThreads - minThreads
      threadTimeoutMillis - threadTimeoutMillis
      Returns:
      a new jetty server instance
    • create

      public org.eclipse.jetty.server.Server create(org.eclipse.jetty.util.thread.ThreadPool threadPool)
      Creates a Jetty server with supplied thread pool
      Specified by:
      create in interface JettyServerFactory
      Parameters:
      threadPool - thread pool
      Returns:
      a new jetty server instance