public interface DistributedMetaStorage extends ReadableDistributedMetaStorage
ReadableDistributedMetaStorage| Modifier and Type | Field and Description |
|---|---|
static String |
IGNITE_INTERNAL_KEY_PREFIX
Prefix for keys in metastorage used by Ignite internally.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
compareAndRemove(@NotNull String key,
@NotNull Serializable expVal)
Remove value from distributed metastorage but only if current value matches the expected one.
|
boolean |
compareAndSet(@NotNull String key,
@Nullable Serializable expVal,
@NotNull Serializable newVal)
Write value into distributed metastorage but only if current value matches the expected one.
|
GridFutureAdapter<Boolean> |
compareAndSetAsync(@NotNull String key,
@Nullable Serializable expVal,
@NotNull Serializable newVal)
Write value into distributed metastorage asynchronously but only if current value matches the expected one.
|
void |
remove(@NotNull String key)
Remove value from distributed metastorage.
|
GridFutureAdapter<?> |
removeAsync(@NotNull String key)
Remove value from distributed metastorage asynchronously.
|
void |
write(@NotNull String key,
@NotNull Serializable val)
Write value into distributed metastorage.
|
GridFutureAdapter<?> |
writeAsync(@NotNull String key,
@NotNull Serializable val)
Write value into distributed metastorage asynchronously.
|
getUpdatesCount, isSupported, iterate, listen, readstatic final String IGNITE_INTERNAL_KEY_PREFIX
void write(@NotNull
@NotNull String key,
@NotNull
@NotNull Serializable val)
throws IgniteCheckedException
key - The key.val - Value to write. Must not be null.IgniteCheckedException - In case of marshalling error or some other unexpected exception.GridFutureAdapter<?> writeAsync(@NotNull @NotNull String key, @NotNull @NotNull Serializable val) throws IgniteCheckedException
key - The key.val - Value to write. Must not be null.IgniteCheckedException - In case of marshalling error or some other unexpected exception.GridFutureAdapter<?> removeAsync(@NotNull @NotNull String key) throws IgniteCheckedException
key - The key.IgniteCheckedException - In case of marshalling error or some other unexpected exception.void remove(@NotNull
@NotNull String key)
throws IgniteCheckedException
key - The key.IgniteCheckedException - In case of marshalling error or some other unexpected exception.boolean compareAndSet(@NotNull
@NotNull String key,
@Nullable
@Nullable Serializable expVal,
@NotNull
@NotNull Serializable newVal)
throws IgniteCheckedException
key - The key.expVal - Expected value. Might be null.newVal - Value to write. Must not be null.True if expected value matched the actual one and write was completed successfully.
False otherwise.IgniteCheckedException - In case of marshalling error or some other unexpected exception.GridFutureAdapter<Boolean> compareAndSetAsync(@NotNull @NotNull String key, @Nullable @Nullable Serializable expVal, @NotNull @NotNull Serializable newVal) throws IgniteCheckedException
key - The key.expVal - Expected value. Might be null.newVal - Value to write. Must not be null.True if expected value matched the actual one and write was completed successfully.
False otherwise.IgniteCheckedException - In case of marshalling error or some other unexpected exception.boolean compareAndRemove(@NotNull
@NotNull String key,
@NotNull
@NotNull Serializable expVal)
throws IgniteCheckedException
key - The key.expVal - Expected value. Must not be null.True if expected value matched the actual one and remove was completed successfully.
False otherwise.IgniteCheckedException - In case of marshalling error or some other unexpected exception.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021