Class/Object

unfiltered.netty

Server

Related Docs: object Server | package netty

Permalink

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)

    Permalink

    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

    Permalink
    Definition Classes
    Server → PlanServer → Server

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def acceptor(group: EventLoopGroup): Server

    Permalink

    Specifies the EventLoopGroup use to handle incoming connections

    Specifies the EventLoopGroup use to handle incoming connections

    Definition Classes
    Builder
  5. val allInterfacesHost: String

    Permalink
    Definition Classes
    PortBindings
  6. def anylocal: Server

    Permalink
    Definition Classes
    PortBindings
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def beforeStop(block: ⇒ Unit): Server

    Permalink
  9. val beforeStopBlock: () ⇒ Unit

    Permalink

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

  10. def bind(binding: PortBinding): Server

    Permalink
    Definition Classes
    ServerPortBindings
  11. def channels(group: ChannelGroup): Server

    Permalink

    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

    Permalink

    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

    Permalink

    the maximum size allowed for request body chunks

  14. def chunked(size: Int): Server

    Permalink
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def closeConnections(): Server

    Permalink
  17. def configure(bootstrap: ServerBootstrap): ServerBootstrap

    Permalink
  18. val defaultHttpPort: Int

    Permalink
    Definition Classes
    PortBindings
  19. val defaultHttpsPort: Int

    Permalink
    Definition Classes
    PortBindings
  20. def destroy(): Server

    Permalink

    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

    Permalink

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

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

    Definition Classes
    ServerBuilder
  22. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  25. def handler(h: ChannelHandler): Server

    Permalink
  26. val handlers: List[() ⇒ ChannelHandler]

    Permalink

    a list of functions which produce channel handlers

  27. def http(port: Int = defaultHttpPort, host: String = allInterfacesHost): Server

    Permalink
    Definition Classes
    PortBindings
  28. def https(port: Int = defaultHttpsPort, host: String = allInterfacesHost, ssl: SslContextProvider): Server

    Permalink
    Definition Classes
    PortBindings
  29. def httpsEngine(port: Int = defaultHttpsPort, host: String = allInterfacesHost, ssl: SslEngineProvider): Server

    Permalink
    Definition Classes
    PortBindings
  30. def initializer(binding: PortBinding): ChannelInitializer[SocketChannel]

    Permalink

    binding

    a binder which may contribute to channel initialization

  31. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  32. def local(port: Int): Server

    Permalink
    Definition Classes
    PortBindings
  33. val localInterfaceHost: String

    Permalink
    Definition Classes
    PortBindings
  34. def makePlan(plan: ⇒ ChannelHandler): Server

    Permalink
    Definition Classes
    Server → PlanServer
  35. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  36. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  38. def plan(plan: ChannelHandler): ServerBuilder

    Permalink
    Definition Classes
    PlanServer
  39. val portBindings: List[PortBinding]

    Permalink

    a list of port bindings

    a list of port bindings

    Definition Classes
    Server → StartableServer
  40. def ports: Iterable[Int]

    Permalink
  41. def resources(path: URL, cacheSeconds: Int = 60, passOnFail: Boolean = true): Server

    Permalink
  42. def run(afterStart: (ServerBuilder) ⇒ Unit, afterStop: (ServerBuilder) ⇒ Unit): Unit

    Permalink
    Definition Classes
    RunnableServer
  43. def run(afterStart: (ServerBuilder) ⇒ Unit): Unit

    Permalink
    Definition Classes
    RunnableServer
  44. def run(): Unit

    Permalink
    Definition Classes
    RunnableServer
  45. def start(prebind: (ServerBootstrap) ⇒ ServerBootstrap): Server

    Permalink

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

  46. def start(): Server

    Permalink

    Starts server in the background

    Starts server in the background

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

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  49. def use(engine: Engine): Server

    Permalink
    Definition Classes
    ServerBuilder
  50. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. def workers(group: EventLoopGroup): Server

    Permalink

    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