org.talares.api.actors

Mediator

class Mediator extends BaseActor

Functions as a conduit between the public API and the other actors needed to turn a org.talares.api.actors.messages.MediatorMessages.Request into a org.talares.api.actors.messages.MediatorMessages.Response.

Takes care of spawning the correct org.talares.api.actors.Fetcher's corresponding to the type of org.talares.api.actors.messages.MediatorMessages.Request. Also leverages the chosen org.talares.api.cache.actors.CachingActor.

Since

0.1.0

Linear Supertypes
BaseActor, ActorLogging, Actor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Mediator
  2. BaseActor
  3. ActorLogging
  4. Actor
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Mediator(app: Talares, cache: Cache)

Type Members

  1. type Receive = PartialFunction[Any, Unit]

    Definition Classes
    Actor

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. val Settings: Settings

    Definition Classes
    BaseActor
  5. val app: Talares

    Definition Classes
    MediatorBaseActor
  6. def aroundPostRestart(reason: Throwable): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  7. def aroundPostStop(): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  8. def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  9. def aroundPreStart(): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  10. def aroundReceive(receive: akka.actor.Actor.Receive, msg: Any): Unit

    Attributes
    protected[akka]
    Definition Classes
    Actor
  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. val cachingActor: ActorRef

  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. implicit val context: ActorContext

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

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

    Definition Classes
    AnyRef → Any
  17. implicit lazy val executionContext: ExecutionContextExecutor

    Definition Classes
    BaseActor
  18. def fetcher[T](implicit jsonReadable: JsonReadable[T], classTag: ClassTag[T]): ActorRef

    Either creates a org.talares.api.actors.Fetcher of the correct type or fetches it from the fetcherCache if one is already present.

    Either creates a org.talares.api.actors.Fetcher of the correct type or fetches it from the fetcherCache if one is already present.

    T

    the specific item type for which to create a org.talares.api.actors.Fetcher

    jsonReadable

    implicit proof that the specified type can be read from a Json representation.

    classTag

    the class tag of the specified type injected by the compiler, used for naming the fetcher

    returns

    a org.talares.api.actors.Fetcher of the given type

  19. val fetcherCache: Map[String, ActorRef]

    Cache which prevents duplicate creation of org.talares.api.actors.Fetcher's of a specific type *

  20. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  22. def handleRequest[T <: Item](request: Request[T]): Unit

    Takes a org.talares.api.actors.messages.MediatorMessages.Request and morphs it into the correct org.talares.api.actors.messages.FetcherMessages.Task.

  23. def handleResult(result: Result[_]): Unit

    Takes a org.talares.api.actors.messages.FetcherMessages.Result and sends a org.talares.api.actors.messages.MediatorMessages.Response back to the client.

  24. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. def log: LoggingAdapter

    Definition Classes
    ActorLogging
  27. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  30. def postRestart(reason: Throwable): Unit

    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  31. def postStop(): Unit

    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  32. def preRestart(reason: Throwable, message: Option[Any]): Unit

    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  33. def preStart(): Unit

    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  34. def receive: Receive

    Definition Classes
    Mediator → Actor
  35. implicit final val self: ActorRef

    Definition Classes
    Actor
  36. final def sender(): ActorRef

    Definition Classes
    Actor
  37. def supervisorStrategy: SupervisorStrategy

    Definition Classes
    Actor
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  39. implicit lazy val system: ActorSystem

    Definition Classes
    BaseActor
  40. implicit lazy val timeout: Timeout

    Definition Classes
    BaseActor
  41. def toString(): String

    Definition Classes
    AnyRef → Any
  42. def unhandled(message: Any): Unit

    Definition Classes
    Actor
  43. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from BaseActor

Inherited from ActorLogging

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Ungrouped