Class

scalut.akka.caching

CacheManager

Related Doc: package caching

Permalink

abstract class CacheManager extends Actor with ActorFaultSupervisor

Базовый класс для реализации кеширования. Может работать в кластере. В дочерних классах необходимо реализовать само кеширование, например, можно использовать для http-сессий и хранить сессию в акторе.

http://eax.me/akka-cluster-routing/ Можно хранить определенные данные на разных излах, чтобы они не дублировались и были на каждом узле свои закешированные данные. Чтобы сообщение передавалось через роутер правильному узлу, сообщения должны реализовывать трейт ConsistentHashable (см. RoutedMsg), присваивая полю consistentHashKey значение, по которому должен осуществляться роутинг. При этом, использовать нужно роутер consistent-hashing-group.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CacheManager
  2. ActorFaultSupervisor
  3. DefaultActorImplicits
  4. ActorLogging
  5. ChildCreationSupport
  6. Actor
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CacheManager()

    Permalink

Type Members

  1. type Receive = PartialFunction[Any, Unit]

    Permalink
    Definition Classes
    Actor

Abstract Value Members

  1. abstract def cache(r: RouterEnvelope[Any, Any]): Unit

    Permalink

Concrete 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. def aroundPostRestart(reason: Throwable): Unit

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  10. def clone(): AnyRef

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

    Permalink
    Definition Classes
    Actor
  12. def createChild(props: Props, name: String): ActorRef

    Permalink
    Definition Classes
    ChildCreationSupport
  13. def createChild(props: Props): ActorRef

    Permalink

    Создает дочерний актор.

    Создает дочерний актор.

    Definition Classes
    ChildCreationSupport
  14. def createNamedChild(props: Props): ActorRef

    Permalink

    Creates child actor with name of its class.

    Creates child actor with name of its class.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. implicit def executionContext: ExecutionContext

    Permalink
    Definition Classes
    DefaultActorImplicits
  18. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. def getOrCreateChild(name: String, props: ⇒ Props): ActorRef

    Permalink
    Definition Classes
    ChildCreationSupport
  21. def getOrCreateNamedChild(props: ⇒ Props): ActorRef

    Permalink
    Definition Classes
    ChildCreationSupport
  22. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  24. def log: LoggingAdapter

    Permalink
    Definition Classes
    ActorLogging
  25. def logError(faulted: ActorRef, ex: Exception, msg: String, strategy: Directive): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ActorFaultSupervisor
  26. val managerRouter: ActorRef

    Permalink
  27. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  30. def onActorInitializationException(child: ActorRef, ex: ActorInitializationException): Directive

    Permalink
    Attributes
    protected
    Definition Classes
    ActorFaultSupervisor
  31. def onActorKilledException(child: ActorRef, ex: ActorKilledException): Directive

    Permalink
    Attributes
    protected
    Definition Classes
    ActorFaultSupervisor
  32. def onDeathPactException(child: ActorRef, ex: DeathPactException): Directive

    Permalink
    Attributes
    protected
    Definition Classes
    ActorFaultSupervisor
  33. def onException(child: ActorRef, ex: Exception): Directive

    Permalink
    Attributes
    protected
    Definition Classes
    ActorFaultSupervisor
  34. def postRestart(reason: Throwable): Unit

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

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

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

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  38. def receive: akka.actor.Actor.Receive

    Permalink
    Definition Classes
    CacheManager → Actor
  39. implicit final val self: ActorRef

    Permalink
    Definition Classes
    Actor
  40. final def sender(): ActorRef

    Permalink
    Definition Classes
    Actor
  41. val supervisorStrategy: SupervisorStrategy

    Permalink
    Definition Classes
    ActorFaultSupervisor
  42. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  43. implicit def system: ActorSystem

    Permalink
    Definition Classes
    DefaultActorImplicits
  44. def toString(): String

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

    Permalink
    Definition Classes
    Actor
  46. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ActorFaultSupervisor

Inherited from DefaultActorImplicits

Inherited from ActorLogging

Inherited from ChildCreationSupport

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Ungrouped