colossus

service

package service

Visibility
  1. Public
  2. All

Type Members

  1. class AsyncHandlerGenerator[I, O] extends AnyRef

    So we need to take a type-parameterized request object, package it into a monomorphic case class to send to the worker, and have the handler that receives that object able to pattern match out the parameterized object, all without using reflection.

  2. trait AsyncServiceClient[I, O] extends AnyRef

  3. class BasicServiceDelegator[C <: CodecDSL] extends DSLDelegator[C]

  4. class BasicServiceHandler[C <: CodecDSL] extends ServiceServer[service.BasicServiceHandler.C.Input, service.BasicServiceHandler.C.Output] with DSLHandler[C]

  5. sealed trait Callback[+O] extends AnyRef

    A Callback is a Monad for doing in-thread non-blocking operations.

  6. case class CallbackExec(cb: () ⇒ Unit, in: Option[FiniteDuration] = scala.None) extends Product with Serializable

  7. trait CallbackExecution extends Actor with ActorLogging

  8. class CallbackExecutionException extends Exception

    This exception is only thrown when there's a uncaught exception in the execution block of a Callback.

  9. case class CallbackExecutor(context: ExecutionContext, executor: ActorRef) extends Product with Serializable

    A CallbackExecutor is an actor that mixes in the [CallbackExecution] trait to complete the execution of a [Callback] that has been converted from a Future.

  10. class CallbackPromise[T] extends AnyRef

    A CallbackPromise creates a callback which can be eventually filled in with a value.

  11. trait ClientCodecProvider[C <: CodecDSL] extends AnyRef

  12. case class ClientConfig(address: InetSocketAddress, requestTimeout: Duration, name: MetricAddress, pendingBufferSize: Int = 100, sentBufferSize: Int = 100, failFast: Boolean = false, connectionAttempts: PollingDuration = ..., idleTimeout: Duration = ...) extends Product with Serializable

    Configuration used to specify a Client's parameters

  13. sealed trait ClientConnectionEvent extends ConnectionEvent

  14. class ClientOverloadedException extends ServiceClientException

    Thrown when the pending buffer is full

  15. class ClientProxy extends Actor with ActorLogging with Stash

    This correctly routes messages to the right worker and handler

  16. trait Codec[Output, Input] extends AnyRef

    A Codec is a stateful object for converting requests/responses to/from DataBuffers.

  17. trait CodecDSL extends AnyRef

  18. trait CodecProvider[C <: CodecDSL] extends AnyRef

    Provide a Codec as well as some convenience functions for usage within in a Service.

  19. trait ConnectionContext[C <: CodecDSL] extends AnyRef

    This contains methods to interact with an individual connection.

  20. sealed trait ConnectionEvent extends AnyRef

  21. class ConnectionLostException extends ServiceClientException

    Thrown when a request is lost in transit

  22. case class ConstantCallback[O](value: Try[O]) extends Callback[O] with Product with Serializable

  23. abstract class DSLDelegator[C <: CodecDSL] extends Delegator with ServiceContext[C]

  24. trait DSLHandler[C <: CodecDSL] extends ServiceServer[service.DSLHandler.C.Input, service.DSLHandler.C.Output] with ConnectionContext[C]

  25. class DataException extends ServiceClientException

    Thrown when there's some kind of data error

  26. sealed trait DecodedResult[+T] extends AnyRef

  27. trait DefaultHandler extends CodecDSL

  28. class DefaultTagDecorator[I, O] extends TagDecorator[I, O]

  29. class Delayer extends Actor with ActorLogging

    This little actor is needed because apparently actors that are running in a pinned dispatcher AND are sending messages to themselves (like workers) cannot use the scheduler.

  30. class DroppedReply extends Error

  31. class FatalServiceServerException extends ServiceServerException

  32. class LoadBalancingClient[I, O] extends ServiceClientLike[I, O] with WorkerItem

    The LoadBalancingClient will evenly distribute requests across a set of clients.

  33. class LoadBalancingClientException extends Exception

  34. case class MappedCallback[I, O](trigger: ((Try[I]) ⇒ Unit) ⇒ Unit, handler: (Try[I]) ⇒ Try[O]) extends Callback[O] with Product with Serializable

  35. trait MessageDecoder[T] extends AnyRef

  36. trait MessageEncoder[T] extends AnyRef

  37. class NotConnectedException extends ServiceClientException

    Throw when a request is attempted while not connected

  38. class PermutationGenerator[T] extends Iterator[List[T]]

    The PermutationGenerator creates permutations such that consecutive calls are guaranteed to cycle though all items as the first element.

  39. class PromiseException extends Exception

  40. class ReceiveException extends Exception

  41. class RequestBufferFullException extends ServiceServerException

  42. trait RequestFormatter[I] extends AnyRef

  43. class RequestTimeoutException extends ServiceClientException

    Returned when a request has been pending for too long

  44. class SendFailedException extends Exception

  45. class ServiceClient[I, O] extends Controller[O, I] with ClientConnectionHandler with ServiceClientLike[I, O] with ManualUnbindHandler

    A ServiceClient is a non-blocking, synchronous interface that handles sending atomic commands on a connection and parsing their replies

  46. class ServiceClientException extends Exception

  47. trait ServiceClientLike[I, O] extends AnyRef

  48. class ServiceClientPool[I, O, T <: ServiceClient[I, O]] extends AnyRef

    A ClientPool is a simple container of open connections.

  49. case class ServiceConfig[I, O](name: MetricAddress, requestTimeout: Duration, requestBufferSize: Int = 100, logErrors: Boolean = true, requestLogFormat: Option[RequestFormatter[I]] = scala.None, requestMetrics: Boolean = true) extends Product with Serializable

    Configuration class for a Service Server Connection Handler

  50. trait ServiceContext[C <: CodecDSL] extends AnyRef

  51. abstract class ServiceServer[I, O] extends Controller[I, O] with ServerConnectionHandler

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

  52. class ServiceServerException extends Exception

  53. class StaleClientException extends Exception

    This is thrown when a Client is manually disconnected, and subsequent attempt is made to reconnect.

  54. trait TagDecorator[I, O] extends AnyRef

  55. class UnhandledRequestException extends Exception

  56. case class UnmappedCallback[I](trigger: ((Try[I]) ⇒ Unit) ⇒ Unit) extends Callback[I] with Product with Serializable

    UnmappedCallback is essentially an optimization that avoids needing to create a MappedCallback with an identity function

Value Members

  1. object AsyncServiceClient

  2. object Callback

  3. object CallbackExecutor extends Serializable

  4. object Codec

  5. object CodecDSL

  6. object ConnectionEvent

  7. object DecodedResult

  8. object Service

    The Service object is an entry point into the the Service DSL which provide some convenience functions for quickly creating a Server serving responses to requests utilizing a Codec(ie: memcached, http, redis, etc).

  9. object ServiceServer

  10. object TagDecorator

Ungrouped