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]] with ColossusLogging

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 protocol 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. ColossusLogging
  3. DownstreamEventHandler
  4. HasDownstream
  5. UpstreamEventHandler
  6. ServiceUpstream
  7. UpstreamEvents
  8. ControllerDownstream
  9. DownstreamEvents
  10. WorkerItemEvents
  11. HasUpstream
  12. AnyRef
  13. 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 debug(s: ⇒ String): Unit

    Permalink
    Definition Classes
    ColossusLogging
  14. def downstream: GenRequestHandler[P]

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. def error(s: ⇒ String, t: Throwable): Unit

    Permalink
    Definition Classes
    ColossusLogging
  18. def error(s: ⇒ String): Unit

    Permalink
    Definition Classes
    ColossusLogging
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def formatIterable(iterable: Iterable[Any], size: Int): String

    Permalink
    Definition Classes
    ColossusLogging
  21. final def getClass(): Class[_]

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

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

    Permalink
  24. val incoming: BufferedPipe[Request]

    Permalink
    Definition Classes
    ServiceServerControllerDownstream
  25. def info(s: ⇒ String): Unit

    Permalink
    Definition Classes
    ColossusLogging
  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. val log: LoggingAdapter

    Permalink
  28. def name: MetricAddress

    Permalink
  29. implicit val namespace: MetricNamespace

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

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

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

    Permalink
    Definition Classes
    AnyRef
  33. 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
  34. def onConnected(): Unit

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

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    UpstreamEvents
  40. 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
  41. def processMessages(): Unit

    Permalink
  42. 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
  43. val requestHandler: GenRequestHandler[P]

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  48. def trace(s: ⇒ String): Unit

    Permalink
    Definition Classes
    ColossusLogging
  49. def unbind(): Unit

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. def warn(s: ⇒ String): Unit

    Permalink
    Definition Classes
    ColossusLogging

Inherited from ColossusLogging

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