case class Netty4Listener[In, Out, Ctx <: TransportContext](pipelineInit: (ChannelPipeline) => Unit, params: Params, setupMarshalling: (ChannelInitializer[Channel]) => ChannelHandler, transportFactory: (Channel) => Transport[Any, Any] { type Context <: Ctx })(implicit mIn: Manifest[In], mOut: Manifest[Out]) extends Listener[In, Out, Ctx] with Product with Serializable
Constructs a Listener[In, Out]
given a
function
responsible for framing a Transport stream. The Listener is configured
via the passed in Params.
pipelineInit
- See also
- Alphabetic
- By Inheritance
- Netty4Listener
- Serializable
- Product
- Equals
- Listener
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
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]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def listen(addr: SocketAddress)(serveTransport: (Transport[In, Out] { type Context <: Ctx }) => Unit): ListeningServer
Listen for connections and apply the
serveTransport
callback on connected transports.Listen for connections and apply the
serveTransport
callback on connected transports.- addr
socket address for listening.
- serveTransport
a call-back for newly created transports which in turn are created for new connections.
- Definition Classes
- Netty4Listener → Listener
- Note
the
implementation is responsible for calling close on transports.serveTransport
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val params: Params
- val pipelineInit: (ChannelPipeline) => Unit
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val setupMarshalling: (ChannelInitializer[Channel]) => ChannelHandler
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Netty4Listener → AnyRef → Any
- val transportFactory: (Channel) => Transport[Any, Any] { type Context <: Ctx }
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()