class KeyValueStorage extends AnyRef
Internal class for managing storage of key/values
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- KeyValueStorage
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new KeyValueStorage()
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
createOrUpdate(key: String, newValue: Option[String], cas: Option[Int], acquire: Option[String], release: Option[String]): Boolean
Attempts to create/update the provided key
Attempts to create/update the provided key
- key
The name/path of the key
- newValue
The new (optional) value
- cas
Optional compare-and-set
- acquire
Optional acquire lock
- release
Optional release
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getKeyValue(key: String): Option[KeyValue]
In essence a non-blocking 'readKey'
-
def
getKeyValues: Map[String, KeyValue]
Get all stored key/values
-
def
getKeysForPath(path: String): Seq[KeyValue]
Simulates a recursive fetch of keys matching a path e.g /foo/bar
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
keyExists(key: String): Boolean
Check if the provided key exists
-
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
readKey(key: String, index: Int, wait: FiniteDuration): Option[KeyValue]
Attempts to perform a blocking read of a key
Attempts to perform a blocking read of a key
- key
The key to read
- index
The modification index to block on
- wait
The duration to block for
-
def
removeKey(key: String): Option[KeyValue]
Removes the key and releases any potential blockers
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )