case class Server(portBindings: List[PortBinding], handlers: List[() ⇒ ChannelHandler], beforeStopBlock: () ⇒ Unit, chunkSize: Int, engine: Engine) extends RunnableServer with PlanServer[ChannelHandler] with PortBindings with Builder[Server] with Product with Serializable

A RunnableServer backed by a list of netty bootstrapped port bindings

portBindings

a list of port bindings

handlers

a list of functions which produce channel handlers

beforeStopBlock

a function to be invoked when the server is shutdown before channels are closed

chunkSize

the maximum size allowed for request body chunks

engine

defines a set of resourced used to make a netty server run

Source
Server.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, Builder[Server], PortBindings, PlanServer[ChannelHandler], RunnableServer, StartableServer, util.Server, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Server
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Builder
  7. PortBindings
  8. PlanServer
  9. RunnableServer
  10. StartableServer
  11. Server
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Server(portBindings: List[PortBinding], handlers: List[() ⇒ ChannelHandler], beforeStopBlock: () ⇒ Unit, chunkSize: Int, engine: Engine)

    portBindings

    a list of port bindings

    handlers

    a list of functions which produce channel handlers

    beforeStopBlock

    a function to be invoked when the server is shutdown before channels are closed

    chunkSize

    the maximum size allowed for request body chunks

    engine

    defines a set of resourced used to make a netty server run

Type Members

  1. type ServerBuilder = Server
    Definition Classes
    Server → PlanServer → Server

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def acceptor(group: EventLoopGroup): Server

    Specifies the EventLoopGroup use to handle incoming connections

    Specifies the EventLoopGroup use to handle incoming connections

    Definition Classes
    Builder
  5. val allInterfacesHost: String
    Definition Classes
    PortBindings
  6. def anylocal: Server
    Definition Classes
    PortBindings
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def beforeStop(block: ⇒ Unit): Server
  9. val beforeStopBlock: () ⇒ Unit
  10. def bind(binding: PortBinding): Server
    Definition Classes
    ServerPortBindings
  11. def channels(group: ChannelGroup): Server

    Specifies the ChannelGroup used for collecting connected channels

    Specifies the ChannelGroup used for collecting connected channels

    Definition Classes
    Builder
  12. def channelsExecutor(executor: EventExecutor): Server

    Sets channels to a DefaultChannelGroup using the given executor

    Sets channels to a DefaultChannelGroup using the given executor

    Definition Classes
    Builder
  13. val chunkSize: Int
  14. def chunked(size: Int): Server
  15. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws(classOf[java.lang.CloneNotSupportedException])
  16. def closeConnections(): Server
  17. def configure(bootstrap: ServerBootstrap): ServerBootstrap
  18. val defaultHttpPort: Int
    Definition Classes
    PortBindings
  19. val defaultHttpsPort: Int
    Definition Classes
    PortBindings
  20. def destroy(): Server

    Destroys the provided worker event loop group before destroying the acceptors event loop group

    Destroys the provided worker event loop group before destroying the acceptors event loop group

    Definition Classes
    Server → StartableServer
  21. val engine: Engine
    Definition Classes
    ServerBuilder
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  24. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. def handler(h: ChannelHandler): Server
  26. val handlers: List[() ⇒ ChannelHandler]
  27. def http(port: Int = defaultHttpPort, host: String = allInterfacesHost): Server
    Definition Classes
    PortBindings
  28. def https(port: Int = defaultHttpsPort, host: String = allInterfacesHost, ssl: SslContextProvider): Server
    Definition Classes
    PortBindings
  29. def httpsEngine(port: Int = defaultHttpsPort, host: String = allInterfacesHost, ssl: SslEngineProvider): Server
    Definition Classes
    PortBindings
  30. def initializer(binding: PortBinding): ChannelInitializer[SocketChannel]

    binding

    a binder which may contribute to channel initialization

  31. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  32. def local(port: Int): Server
    Definition Classes
    PortBindings
  33. val localInterfaceHost: String
    Definition Classes
    PortBindings
  34. def makePlan(plan: ⇒ ChannelHandler): Server
    Definition Classes
    Server → PlanServer
  35. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. def plan(plan: ChannelHandler): ServerBuilder
    Definition Classes
    PlanServer
  39. val portBindings: List[PortBinding]
    Definition Classes
    Server → StartableServer
  40. def ports: Iterable[Int]
  41. def resources(path: URL, cacheSeconds: Int = 60, passOnFail: Boolean = true): Server
  42. def run(afterStart: (ServerBuilder) ⇒ Unit, afterStop: (ServerBuilder) ⇒ Unit): Unit
    Definition Classes
    RunnableServer
  43. def run(afterStart: (ServerBuilder) ⇒ Unit): Unit
    Definition Classes
    RunnableServer
  44. def run(): Unit
    Definition Classes
    RunnableServer
  45. def start(prebind: (ServerBootstrap) ⇒ ServerBootstrap): Server

    Starts server in the background after applying a function to each port bindings server bootstrap

  46. def start(): Server

    Starts server in the background

    Starts server in the background

    Definition Classes
    Server → StartableServer
  47. def stop(): Server

    Stops server running the background.

    Stops server running the background. If provided, the beforeStop block will be invoked before closing channel connections. Any listed cycle plans will be shutdown in the order provided. Lastly shared thread resources will be released.

    Definition Classes
    Server → StartableServer
  48. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  49. def use(engine: Engine): Server
    Definition Classes
    ServerBuilder
  50. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  51. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  52. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws(classOf[java.lang.InterruptedException])
  53. def workers(group: EventLoopGroup): Server

    Specifies the EventLoopGroup use to handle processing of registered channels

    Specifies the EventLoopGroup use to handle processing of registered channels

    Definition Classes
    Builder

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Builder[Server]

Inherited from PortBindings

Inherited from PlanServer[ChannelHandler]

Inherited from RunnableServer

Inherited from StartableServer

Inherited from util.Server

Inherited from AnyRef

Inherited from Any

Ungrouped