SharedStore class abstract
Base class for SharedStore implementations.
- Inheritance
-
- Object
- ReferenceableType
- SharedStore
Constructors
-
Creates a SharedStore with
id
.factory -
Creates a SharedStore from
reference
orid
.factory -
Creates a SharedStore from
sharedReference
.factory -
Creates a SharedStore using a ReferenceableType.newUUID as id.
factory
-
Creates a SharedStore that can NOT be shared.
Useful for tests or to have a version that disables the share capabilities.
factory
Properties
Methods
-
Returns a SharedMap with
id
in this SharedStore instance. -
Returns a shared object of type
t
orO
withid
. The object should be previously registered with registerSharedObject. See getSharedObjectReference.override -
Returns a SharedReference
R
for typet
orO
withid
. The object should be previously registered with registerSharedObject. See getSharedObject. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
Registers a shared object
o
(of type[O]
). This object can be retrieved by getSharedObject and getSharedObjectReference. -
Returns the SharedReference of this instances,
to instantiate it using a
fromSharedReference
constructor.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited