Instance Constructors
-
new
CacheManager()
Type Members
-
Abstract Value Members
-
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
def
aroundPostRestart(reason: Throwable): Unit
-
def
aroundPostStop(): Unit
-
def
aroundPreRestart(reason: Throwable, message: Option[Any]): Unit
-
def
aroundPreStart(): Unit
-
def
aroundReceive(receive: akka.actor.Actor.Receive, msg: Any): Unit
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
-
def
createChild(props: Props, name: String): ActorRef
-
-
def
createNamedChild(props: Props): ActorRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
getOrCreateChild(name: String, props: ⇒ Props): ActorRef
-
def
getOrCreateNamedChild(props: ⇒ Props): ActorRef
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
-
def
logError(faulted: ActorRef, ex: Exception, msg: String, strategy: Directive): Unit
-
val
managerRouter: ActorRef
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
-
-
-
def
onException(child: ActorRef, ex: Exception): Directive
-
def
postRestart(reason: Throwable): Unit
-
def
postStop(): Unit
-
def
preRestart(reason: Throwable, message: Option[Any]): Unit
-
def
preStart(): Unit
-
def
receive: akka.actor.Actor.Receive
-
implicit final
val
self: ActorRef
-
final
def
sender(): ActorRef
-
val
supervisorStrategy: SupervisorStrategy
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
-
def
toString(): String
-
def
unhandled(message: Any): Unit
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
Базовый класс для реализации кеширования. Может работать в кластере. В дочерних классах необходимо реализовать само кеширование, например, можно использовать для http-сессий и хранить сессию в акторе.
http://eax.me/akka-cluster-routing/ Можно хранить определенные данные на разных излах, чтобы они не дублировались и были на каждом узле свои закешированные данные. Чтобы сообщение передавалось через роутер правильному узлу, сообщения должны реализовывать трейт ConsistentHashable (см. RoutedMsg), присваивая полю consistentHashKey значение, по которому должен осуществляться роутинг. При этом, использовать нужно роутер consistent-hashing-group.