unfiltered.netty

Server

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

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
Learn more about member selection
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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def acceptor(group: EventLoopGroup): Server

    Specifies the EventLoopGroup use to handle incoming connections

    Specifies the EventLoopGroup use to handle incoming connections

    Definition Classes
    Builder
  7. val allInterfacesHost: String

    Definition Classes
    PortBindings
  8. def anylocal: Server

    Definition Classes
    PortBindings
  9. final def asInstanceOf[T0]: T0

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

  11. val beforeStopBlock: () ⇒ Unit

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

  12. def bind(binding: PortBinding): Server

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

    Specifies the ChannelGroup used for collecting connected channels

    Specifies the ChannelGroup used for collecting connected channels

    Definition Classes
    Builder
  14. 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
  15. val chunkSize: Int

    the maximum size allowed for request body chunks

  16. def chunked(size: Int): Server

  17. def clone(): AnyRef

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

  19. def configure(bootstrap: ServerBootstrap): ServerBootstrap

  20. val defaultHttpPort: Int

    Definition Classes
    PortBindings
  21. val defaultHttpsPort: Int

    Definition Classes
    PortBindings
  22. 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
  23. val engine: Engine

    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
  24. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. def finalize(): Unit

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

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

  28. val handlers: List[() ⇒ ChannelHandler]

    a list of functions which produce channel handlers

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

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

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

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

  33. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    PortBindings
  35. val localInterfaceHost: String

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

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

    Definition Classes
    AnyRef
  38. final def notify(): Unit

    Definition Classes
    AnyRef
  39. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  40. def plan(plan: ChannelHandler): ServerBuilder

    Definition Classes
    PlanServer
  41. val portBindings: List[PortBinding]

    a list of port bindings

    a list of port bindings

    Definition Classes
    Server → StartableServer
  42. def ports: Traversable[Int]

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

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

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

    Definition Classes
    RunnableServer
  46. def run(): Unit

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

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

  48. def start(): Server

    Starts server in the background

    Starts server in the background

    Definition Classes
    Server → StartableServer
  49. 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
  50. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Definition Classes
    ServerBuilder
  52. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. 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