Packages

c

wvlet.airframe.http.netty

NettyServerConfig

case class NettyServerConfig(name: String = "default", serverPort: Option[Int] = None, controllerProvider: ControllerProvider = ControllerProvider.defaultControllerProvider, router: Router = Router.empty, useEpoll: Boolean = true, httpLoggerConfig: HttpLoggerConfig = HttpLoggerConfig(logFileName = "log/http_server.json"), httpLoggerProvider: (HttpLoggerConfig) => HttpLogger = (config: HttpLoggerConfig) => new LogRotationHttpLogger(config), customCodec: PartialFunction[Surface, MessageCodec[_]] = PartialFunction.empty, executionContext: ExecutionContext = ExecutionContext.fromExecutorService( Executors.newCachedThreadPool(ThreadUtil.newDaemonThreadFactory("airframe-netty")) )) extends Product with Serializable

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NettyServerConfig
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new NettyServerConfig(name: String = "default", serverPort: Option[Int] = None, controllerProvider: ControllerProvider = ControllerProvider.defaultControllerProvider, router: Router = Router.empty, useEpoll: Boolean = true, httpLoggerConfig: HttpLoggerConfig = HttpLoggerConfig(logFileName = "log/http_server.json"), httpLoggerProvider: (HttpLoggerConfig) => HttpLogger = (config: HttpLoggerConfig) => new LogRotationHttpLogger(config), customCodec: PartialFunction[Surface, MessageCodec[_]] = PartialFunction.empty, executionContext: ExecutionContext = ExecutionContext.fromExecutorService( Executors.newCachedThreadPool(ThreadUtil.newDaemonThreadFactory("airframe-netty")) ))

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. val controllerProvider: ControllerProvider
  7. val customCodec: PartialFunction[Surface, MessageCodec[_]]
  8. def design: Design

    Create a new DI design for instanciating the Netty server with this config

  9. def designWithAsyncClient: Design
  10. def designWithSyncClient: Design
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. val executionContext: ExecutionContext
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  14. val httpLoggerConfig: HttpLoggerConfig
  15. val httpLoggerProvider: (HttpLoggerConfig) => HttpLogger
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. val name: String
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def newHttpLogger: HttpLogger
  20. def newServer(session: Session): NettyServer
  21. def noLogging: NettyServerConfig
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  24. lazy val port: Int
  25. def productElementNames: Iterator[String]
    Definition Classes
    Product
  26. val router: Router
  27. val serverPort: Option[Int]
  28. def start[U](body: (NettyServer) => U): U
  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. val useEpoll: Boolean
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. def withCustomCodec(m: Map[Surface, MessageCodec[_]]): NettyServerConfig
  35. def withCustomCodec(p: PartialFunction[Surface, MessageCodec[_]]): NettyServerConfig
  36. def withExtraLogEntries(f: () => Map[String, Any]): NettyServerConfig
  37. def withHttpLogger(loggerProvider: (HttpLoggerConfig) => HttpLogger): NettyServerConfig
  38. def withHttpLoggerConfig(f: (HttpLoggerConfig) => HttpLoggerConfig): NettyServerConfig
  39. def withName(name: String): NettyServerConfig
  40. def withPort(port: Int): NettyServerConfig
  41. def withRouter(rxRouter: RxRouter): NettyServerConfig

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped