Class/Object

core3.database.dals.memory

DistributedCache

Related Docs: object DistributedCache | package memory

Permalink

class DistributedCache extends DatabaseAbstractionLayerComponent

A Database Abstraction Layer for wrapping another layer with a clustering-capable cache.

Notes:

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DistributedCache
  2. DatabaseAbstractionLayerComponent
  3. Component
  4. Actor
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DistributedCache(source: DatabaseAbstractionLayer, containerCompanions: Map[ContainerType, BasicContainerCompanion], config: Config = ...)(implicit ec: ExecutionContext, timeout: Timeout)

    Permalink

    Creates a new instance with the supplied config or uses the default config location.

    Creates a new instance with the supplied config or uses the default config location.

    source

    source DAL for retrieving and updating data; after the cache is created, all changes must be sent to the cache and not to the source directly

    containerCompanions

    map with all registered container companion objects

    config

    the config to use (if specified; default path is 'server.static.database.distributed-cache')

    returns

    the new instance

  2. new DistributedCache(clusterHost: String, clusterPort: Int, localPort: Int, source: DatabaseAbstractionLayer, preload: Boolean, actionTimeout: Int, containerCompanions: Map[ContainerType, BasicContainerCompanion], containerTypeMaxCacheSize: Int, syncInterval: Int, maxLoadAttempts: Int, actorProvider: String)(implicit ec: ExecutionContext, timeout: Timeout)

    Permalink

    clusterHost

    cluster hostname/IP; can be set to own/local hostname/IP to initialize cluster or create single-node cluster

    clusterPort

    cluster port; can be set to own/local port to initialize cluster or create single-node cluster

    localPort

    local actor system TCP port

    source

    source DAL for retrieving and updating data; after the cache is created, all changes must be sent to the cache and not to the source directly

    preload

    if set to true, the cache will attempt to load all data during initialization (see notes)

    actionTimeout

    the amount of time (in seconds) before an operation is considered as timed out

    containerCompanions

    map with all registered container companion objects

    containerTypeMaxCacheSize

    maximum cache size per container type

    syncInterval

    message sync broadcast interval; also used for initial sync delay (see notes)

    maxLoadAttempts

    maximum number of times to attempt loading an object from the source

    actorProvider

    Akka actor provider

    ec

    implicit execution context

Type Members

  1. type Receive = PartialFunction[Any, Unit]

    Permalink
    Definition Classes
    Actor

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 addReceiver(next: akka.actor.Actor.Receive): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Component
  5. def aroundPostRestart(reason: Throwable): Unit

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. def handle_BuildDatabaseStructure(objectsType: ContainerType): Future[Boolean]

    Permalink
    Attributes
    protected
    Definition Classes
    DistributedCacheDatabaseAbstractionLayerComponent
  18. def handle_ClearDatabaseStructure(objectsType: ContainerType): Future[Boolean]

    Permalink
    Attributes
    protected
    Definition Classes
    DistributedCacheDatabaseAbstractionLayerComponent
  19. def handle_CreateObject(container: Container): Future[Boolean]

    Permalink
    Attributes
    protected
    Definition Classes
    DistributedCacheDatabaseAbstractionLayerComponent
  20. def handle_DeleteObject(objectType: ContainerType, objectID: ObjectID): Future[Boolean]

    Permalink
    Attributes
    protected
    Definition Classes
    DistributedCacheDatabaseAbstractionLayerComponent
  21. def handle_ExecuteAction(action: String, params: Option[Map[String, Option[String]]]): Future[ActionResult]

    Permalink
    Attributes
    protected
    Definition Classes
    DistributedCacheComponent
  22. def handle_GetCustomQueryResult(objectsType: ContainerType, customQueryName: String, queryParams: Map[String, String]): Future[ContainerSet]

    Permalink
    Attributes
    protected
    Definition Classes
    DistributedCacheDatabaseAbstractionLayerComponent
  23. def handle_GetDatabaseIdentifier: String

    Permalink
    Attributes
    protected
    Definition Classes
    DistributedCacheDatabaseAbstractionLayerComponent
  24. def handle_GetGenericQueryResult(objectsType: ContainerType): Future[ContainerSet]

    Permalink
    Attributes
    protected
    Definition Classes
    DistributedCacheDatabaseAbstractionLayerComponent
  25. def handle_GetLayerType: LayerType

    Permalink
    Attributes
    protected
    Definition Classes
    DistributedCacheDatabaseAbstractionLayerComponent
  26. def handle_GetObject(objectType: ContainerType, objectID: ObjectID): Future[Container]

    Permalink
    Attributes
    protected
    Definition Classes
    DistributedCacheDatabaseAbstractionLayerComponent
  27. def handle_GetSupportedContainers: Vector[ContainerType]

    Permalink
    Attributes
    protected
    Definition Classes
    DistributedCacheDatabaseAbstractionLayerComponent
  28. def handle_LoadView(view: ContainerView): Future[Unit]

    Permalink
    Attributes
    protected
    Definition Classes
    DatabaseAbstractionLayerComponent
  29. def handle_UpdateObject(container: MutableContainer): Future[Boolean]

    Permalink
    Attributes
    protected
    Definition Classes
    DistributedCacheDatabaseAbstractionLayerComponent
  30. def handle_VerifyDatabaseStructure(objectsType: ContainerType): Future[Boolean]

    Permalink
    Attributes
    protected
    Definition Classes
    DistributedCacheDatabaseAbstractionLayerComponent
  31. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  33. final def ne(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
    Definition Classes
    Component → Actor
  38. def preRestart(reason: Throwable, message: Option[Any]): Unit

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

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

    Permalink
    Definition Classes
    Component → Actor
  41. implicit final val self: ActorRef

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

    Permalink
    Definition Classes
    Actor
  43. def shutdown(): Unit

    Permalink
    Definition Classes
    DistributedCacheComponent
  44. def supervisorStrategy: SupervisorStrategy

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

    Permalink
    Definition Classes
    AnyRef
  46. def toString(): String

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

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

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

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

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

Inherited from Component

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Ungrouped