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
Ordering
- Alphabetic
- By Inheritance
Inherited
- NettyServerConfig
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- 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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- val controllerProvider: ControllerProvider
- val customCodec: PartialFunction[Surface, MessageCodec[_]]
- def design: Design
Create a new DI design for instanciating the Netty server with this config
- def designWithAsyncClient: Design
- def designWithSyncClient: Design
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val executionContext: ExecutionContext
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- val httpLoggerConfig: HttpLoggerConfig
- val httpLoggerProvider: (HttpLoggerConfig) => HttpLogger
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val name: String
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newHttpLogger: HttpLogger
- def newServer(session: Session): NettyServer
- def noLogging: NettyServerConfig
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- lazy val port: Int
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val router: Router
- val serverPort: Option[Int]
- def start[U](body: (NettyServer) => U): U
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val useEpoll: Boolean
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withCustomCodec(m: Map[Surface, MessageCodec[_]]): NettyServerConfig
- def withCustomCodec(p: PartialFunction[Surface, MessageCodec[_]]): NettyServerConfig
- def withExtraLogEntries(f: () => Map[String, Any]): NettyServerConfig
- def withHttpLogger(loggerProvider: (HttpLoggerConfig) => HttpLogger): NettyServerConfig
- def withHttpLoggerConfig(f: (HttpLoggerConfig) => HttpLoggerConfig): NettyServerConfig
- def withName(name: String): NettyServerConfig
- def withPort(port: Int): NettyServerConfig
- def withRouter(rxRouter: RxRouter): NettyServerConfig
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)