public interface ReadableDistributedMetaStorage
| Modifier and Type | Method and Description |
|---|---|
long |
getUpdatesCount()
Get the total number of updates (write/remove) that metastorage ever had.
|
static boolean |
isSupported(GridKernalContext ctx) |
void |
iterate(@NotNull String keyPrefix,
@NotNull BiConsumer<String,? super Serializable> cb)
Iterate over all values corresponding to the keys with given prefix.
|
void |
listen(@NotNull Predicate<String> keyPred,
DistributedMetaStorageListener<?> lsnr)
Add listener on data updates.
|
<T extends Serializable> |
read(@NotNull String key)
Get value by the key.
|
static boolean isSupported(GridKernalContext ctx)
True if all nodes in the cluster support discributed metastorage feature.IgniteFeatures.DISTRIBUTED_METASTORAGElong getUpdatesCount()
@Nullable <T extends Serializable> T read(@NotNull @NotNull String key) throws IgniteCheckedException
key - The key.IgniteCheckedException - If reading or unmarshalling failed.void iterate(@NotNull
@NotNull String keyPrefix,
@NotNull
@NotNull BiConsumer<String,? super Serializable> cb)
throws IgniteCheckedException
keyPrefix - Prefix for the keys that will be iterated.cb - Callback that will be applied to all <key, value> pairs.IgniteCheckedException - If reading or unmarshalling failed.void listen(@NotNull
@NotNull Predicate<String> keyPred,
DistributedMetaStorageListener<?> lsnr)
keyPred - Predicate to check whether this listener should be invoked on given key update or not.lsnr - Listener object.DistributedMetaStorageListener
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.0 Release Date : February 27 2020