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. trait AsyncServiceClient[I, O] extends AnyRef

  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 <: Protocol] extends AnyRef

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

    Configuration used to specify a Client's parameters

  13. sealed trait ClientConnectionEvent extends ConnectionEvent

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

  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. class ClientProxy extends Actor with ActorLogging with Stash

    This correctly routes messages to the right worker and handler

  19. sealed trait ClientState extends AnyRef

  20. trait Codec[Output, Input] extends AnyRef

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

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

  22. trait CodecProvider[C <: Protocol] extends AnyRef

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

  23. sealed trait ConnectionEvent extends AnyRef

  24. class ConnectionLostException extends ServiceClientException

    Thrown when a request is lost in transit

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

  26. class DataException extends ServiceClientException

    Thrown when there's some kind of data error

  27. sealed trait DecodedResult[+T] extends AnyRef

  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 DroppedReplyException extends ServiceServerException

  31. class FatalServiceServerException extends ServiceServerException

  32. class FutureAsync extends Async[Future]

  33. trait FutureClient[C <: Protocol] extends AsyncServiceClient[service.FutureClient.C.Input, service.FutureClient.C.Output] with Sender[C, Future]

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

  35. class LiftedClient[C <: Protocol, M[_]] extends Sender[C, M]

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

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

  37. class LoadBalancingClientException extends Exception

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

  39. trait MessageDecoder[T] extends AnyRef

  40. trait MessageEncoder[T] extends AnyRef

  41. class NotConnectedException extends ServiceClientException

    Throw when a request is attempted while not connected

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

  43. sealed trait ProcessingFailure[C] extends AnyRef

  44. class PromiseException extends Exception

  45. trait Protocol extends AnyRef

  46. class ReceiveException extends Exception

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

  48. class RequestBufferFullException extends ServiceServerException

  49. trait RequestFormatter[I] extends AnyRef

  50. class RequestTimeoutException extends ServiceClientException

    Returned when a request has been pending for too long

  51. class SendFailedException extends Exception

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

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

  53. abstract class Service[C <: Protocol] extends ServiceServer[service.Service.C.Input, service.Service.C.Output]

  54. class ServiceClient[P <: Protocol] extends Controller[service.ServiceClient.P.Output, service.ServiceClient.P.Input] with ClientConnectionHandler with Sender[P, Callback] with ManualUnbindHandler

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

  55. class ServiceClientException extends Exception

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

    A ClientPool is a simple container of open connections.

  57. trait ServiceCodecProvider[C <: Protocol] extends CodecProvider[C]

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

  59. class ServiceConfigException extends Exception

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

  61. class ServiceServerException extends Exception

  62. class StaleClientException extends Exception

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

  63. trait TagDecorator[I, O] extends AnyRef

  64. class UnhandledRequestException extends Exception

  65. 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 AsyncBuilder

  2. object AsyncServiceClient

  3. object Callback

  4. object CallbackAsync extends Async[Callback]

  5. object CallbackExecutor extends Serializable

  6. object ClientConfig extends Serializable

  7. object ClientFactory

  8. object ClientState

  9. object Codec

  10. object ConnectionEvent

  11. object DecodedResult

  12. object Protocol

  13. object Service

  14. object ServiceClient

  15. object ServiceConfig extends Serializable

  16. object ServiceServer

  17. object TagDecorator

Ungrouped