colossus

service

package service

Visibility
  1. Public
  2. All

Type Members

  1. trait Async[M[_]] extends AnyRef

    A Typeclass for abstracting over callbacks and futures

  2. trait AsyncBuilder[M[_], E] extends AnyRef

    A Typeclass for building Async instances, used internally by ClientFactory.

  3. class AsyncHandlerGenerator[C <: Protocol] 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.

  4. class BasicLiftedClient[C <: Protocol, M[_]] extends LiftedClient[C, M]

  5. trait BasicServiceDSL[P <: Protocol] extends AnyRef

    A one stop shop for a fully working Server DSL without any custom functionality.

  6. sealed trait Callback[+O] extends AnyRef

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

  7. trait CallbackClient[P <: Protocol] extends Client[P, Callback]

  8. trait CallbackClientFactory[P <: Protocol, T <: Sender[P, Callback]] extends ClientFactory[P, Callback, T, WorkerRef]

  9. class CallbackExecutionException extends Exception

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

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

    A CallbackExecutor represents a scheduler and execution environment for Callbacks and is required when either converting a Future to a Callback or scheduling delayed execution of a Callback.

  11. class CallbackPromise[T] extends AnyRef

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

  12. trait Client[P <: Protocol, M[_]] extends Sender[P, M]

  13. case class ClientConfig(address: InetSocketAddress, requestTimeout: Duration, name: MetricAddress, pendingBufferSize: Int = 500, sentBufferSize: Int = 100, failFast: Boolean = false, connectRetry: RetryPolicy = ..., idleTimeout: Duration = ..., maxResponseSize: DataSize = ...) extends Product with Serializable

    Configuration used to specify a Client's parameters

  14. abstract class ClientFactories[C <: Protocol, T[M[_]] <: Sender[C, M[_]]] extends AnyRef

    Mixed into protocols to provide simple methods for creating clients.

  15. trait ClientFactory[C <: Protocol, M[_], +T <: Sender[C, M], E] extends AnyRef

    A generic trait for creating clients.

  16. trait ClientLifter[C <: Protocol, T[M[_]] <: Sender[C, M[_]]] extends AnyRef

    This has to be implemented per codec in order to lift generic Sender traits to a type-specific trait

  17. class ClientOverloadedException extends ServiceClientException

    Thrown when the pending buffer is full

  18. sealed trait ClientState extends AnyRef

  19. class CodecClientFactory[C <: Protocol, M[_], T[M[_]] <: Sender[C, M[_]], E] extends ClientFactory[C, M, T[M], E]

  20. class ConnectionLostException extends ServiceClientException

    Thrown when a request is lost in transit

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

    A Callback containing a constant value, usually created as the result of calling Callback.success or Callback.failure.

  22. class DataException extends ServiceClientException

    Thrown when there's some kind of data error

  23. class DefaultTagDecorator[P <: Protocol] extends TagDecorator[P]

  24. class DroppedReplyException extends ServiceServerException

  25. class FatalServiceServerException extends ServiceServerException

  26. class FutureAsync extends Async[Future]

  27. trait FutureClient[C <: Protocol] extends Client[C, Future]

  28. trait FutureClientFactory[P <: Protocol, T <: Sender[P, Future]] extends ClientFactory[P, Future, T, IOSystem]

  29. class GenFutureClientFactory[P <: Protocol] extends FutureClientFactory[P, FutureClient[P]]

  30. abstract class GenRequestHandler[P <: Protocol] extends DownstreamEvents with HandlerTail with UpstreamEventHandler[ServiceUpstream[P]]

  31. abstract class HandlerGenerator[T] extends AnyRef

  32. case class IrrecoverableError[C](reason: Throwable) extends ProcessingFailure[C] with Product with Serializable

  33. trait LiftedClient[C <: Protocol, M[_]] extends Sender[C, M]

  34. class LoadBalancingClient[P <: Protocol] extends WorkerItem with Sender[P, Callback]

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

  35. class LoadBalancingClientException extends Exception

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

    A Callback that has been mapped on.

  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. sealed trait ProcessingFailure[C] extends AnyRef

  40. class PromiseException extends Exception

  41. trait Protocol extends AnyRef

  42. class ProxyWatchdog extends Actor

  43. class ReceiveException extends Exception

  44. case class RecoverableError[C](request: C, reason: Throwable) extends ProcessingFailure[C] with Product with Serializable

  45. class RequestBufferFullException extends ServiceServerException

  46. trait RequestFormatter[I] extends AnyRef

  47. class RequestHandlerException extends Exception

  48. class RequestTimeoutException extends ServiceClientException

    Returned when a request has been pending for too long

  49. class SendFailedException extends Exception

  50. trait Sender[C <: Protocol, M[_]] extends AnyRef

    A Sender is anything that is able to asynchronously send a request and receive a corresponding response

  51. class ServiceClient[P <: Protocol] extends ControllerDownstream[controller.Encoding.Client[P]] with HasUpstream[ControllerUpstream[controller.Encoding.Client[P]]] with Client[P, Callback] with HandlerTail

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

  52. class ServiceClientException extends Exception

  53. trait ServiceClientFactory[P <: Protocol] extends ClientFactory[P, Callback, ServiceClient[P], WorkerRef]

  54. class ServiceClientPool[T <: Sender[_, Callback]] extends AnyRef

    A ClientPool is a simple container of open connections.

  55. case class ServiceConfig(requestTimeout: Duration, requestBufferSize: Int, logErrors: Boolean, requestMetrics: Boolean, maxRequestSize: DataSize) extends Product with Serializable

    Configuration class for a Service Server Connection Handler

  56. class ServiceConfigException extends Exception

  57. trait ServiceDSL[T, I <: ServiceInitializer[T]] extends AnyRef

  58. trait ServiceInitializer[T] extends HandlerGenerator[T]

  59. 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.

  60. class ServiceServerException extends Exception

  61. trait ServiceUpstream[P <: Protocol] extends UpstreamEvents

  62. class StaleClientException extends Exception

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

  63. trait TagDecorator[P <: Protocol] extends AnyRef

  64. class UnbindHandler extends PipelineHandler with ManualUnbindHandler

  65. class UnhandledRequestException extends Exception

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

    A Callback that has not been mapped.

Value Members

  1. object AsyncBuilder

  2. object Callback

  3. object CallbackAsync extends Async[Callback]

  4. object CallbackExecutor extends Serializable

  5. object ClientConfig extends Serializable

  6. object ClientState

  7. object FutureClient

  8. object GenRequestHandler

  9. object ServiceClientFactory

  10. object ServiceConfig extends Serializable

  11. object ServiceServer

  12. object TagDecorator

Ungrouped