Class/Object

colossus.service

ServiceServer

Related Docs: object ServiceServer | package service

Permalink

class ServiceServer[P <: Protocol] extends ControllerDownstream[Server[P]] with ServiceUpstream[P] with UpstreamEventHandler[ControllerUpstream[Server[P]]] with DownstreamEventHandler[GenRequestHandler[P]]

The ServiceServer provides an interface and basic functionality to create a server that processes requests and returns responses over a codec.

A Codec is simply the format in which the data is represented. Http, Redis protocol, Memcached protocl are all examples(and natively supported). It is entirely possible to use an additional Codec by creating a Codec to parse the desired protocol.

Requests can be processed synchronously or asynchronously. The server will ensure that all responses are written back in the order that they are received.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ServiceServer
  2. DownstreamEventHandler
  3. HasDownstream
  4. UpstreamEventHandler
  5. ServiceUpstream
  6. UpstreamEvents
  7. ControllerDownstream
  8. DownstreamEvents
  9. WorkerItemEvents
  10. HasUpstream
  11. AnyRef
  12. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ServiceServer(requestHandler: GenRequestHandler[P])

    Permalink

Type Members

  1. type Request = P.Request

    Permalink
  2. type Response = P.Response

    Permalink

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def bind(): Unit

    Permalink
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def config: ServiceConfig

    Permalink
  8. def connected(): Unit

    Permalink
  9. def connectionTerminated(reason: DisconnectCause): Unit

    Permalink
  10. def context: Context

    Permalink
  11. val controllerConfig: ControllerConfig

    Permalink
    Definition Classes
    ServiceServerControllerDownstream
  12. def currentRequestBufferSize: Int

    Permalink
  13. def downstream: GenRequestHandler[P]

    Permalink
    Definition Classes
    ServiceServerHasDownstream
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. def idleCheck(period: FiniteDuration): Unit

    Permalink
  20. val incoming: BufferedPipe[Request]

    Permalink
    Definition Classes
    ServiceServerControllerDownstream
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. val log: LoggingAdapter

    Permalink
  23. def name: MetricAddress

    Permalink
  24. implicit val namespace: MetricNamespace

    Permalink
    Definition Classes
    ServiceServerControllerDownstream
  25. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  28. def onBind(): Unit

    Permalink

    Called when the item is bound to a worker.

    Called when the item is bound to a worker.

    Definition Classes
    ServiceServerWorkerItemEvents
  29. def onConnected(): Unit

    Permalink
    Definition Classes
    ServiceServerDownstreamEvents
  30. def onConnectionTerminated(cause: DisconnectCause): Unit

    Permalink
    Definition Classes
    ServiceServerDownstreamEvents
  31. def onFatalError(reason: Throwable): Disconnect[Response]

    Permalink
    Definition Classes
    ServiceServerControllerDownstream
  32. def onIdleCheck(period: FiniteDuration): Unit

    Permalink
    Definition Classes
    ServiceServerDownstreamEvents
  33. def onReceivedMessage(sender: ActorRef, message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    DownstreamEvents
  34. def onShutdown(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    UpstreamEvents
  35. def onUnbind(): Unit

    Permalink

    Called when the item has been unbound from a worker

    Called when the item has been unbound from a worker

    Attributes
    protected
    Definition Classes
    WorkerItemEvents
  36. def processMessages(): Unit

    Permalink
  37. def receivedMessage(message: Any, sender: ActorRef): Unit

    Permalink

    Provides a way to send this WorkerItem a message from an Actor by way of WorkerCommand.Message.

    Provides a way to send this WorkerItem a message from an Actor by way of WorkerCommand.Message.

    message

    The message that was sent

    sender

    The sender who sent the message

    Definition Classes
    DownstreamEventHandlerDownstreamEventsWorkerItemEvents
  38. val requestHandler: GenRequestHandler[P]

    Permalink
  39. def setUpstream(up: ControllerUpstream[Server[P]]): Unit

    Permalink
    Definition Classes
    HasUpstream
  40. def shutdown(): Unit

    Permalink
  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  42. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  43. def unbind(): Unit

    Permalink
  44. lazy val upstream: ControllerUpstream[Server[P]]

    Permalink
    Definition Classes
    HasUpstream
  45. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from HasDownstream[GenRequestHandler[P]]

Inherited from ServiceUpstream[P]

Inherited from UpstreamEvents

Inherited from ControllerDownstream[Server[P]]

Inherited from DownstreamEvents

Inherited from WorkerItemEvents

Inherited from HasUpstream[ControllerUpstream[Server[P]]]

Inherited from AnyRef

Inherited from Any

Ungrouped