final class Storage extends AnyRef
Provides an interface to the Storage
mechanism that allows concurrent read/write
access to the underlying RawStorage
instance.
- Alphabetic
- By Inheritance
- Storage
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Storage(actorStorage: ActorRef, loadTimeout: FiniteDuration, removeTimeout: FiniteDuration, saveTimeout: FiniteDuration, namespace: String)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def load[A](state: StateCodec[A], id: UUID)(implicit ec: ExecutionContext): Future[Option[A]]
Loads an object from storage.
Loads an object from storage. Given their ephemeral nature, if there is an error in decoding a snapshot, it is discarded.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def remove[A](state: StateCodec[A], id: UUID)(implicit ec: ExecutionContext): Future[Done]
Removes an object from storage
- def save[A](state: StateCodec[A], id: UUID, data: A)(implicit ec: ExecutionContext): Future[Done]
Saves an object in storage
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withNamespace(namespace: String): Storage
Returns a
Storage
instance that ensures all storage access occurs within the provided namespace.