public final class VanillaStringStringKeyValueStore extends net.openhft.chronicle.core.io.SimpleCloseable implements StringStringKeyValueStore
KeyValueStore.Entry<K,V>
Constructor and Description |
---|
VanillaStringStringKeyValueStore(RequestContext context,
@NotNull Asset asset,
@NotNull SubscriptionKeyValueStore<String,net.openhft.chronicle.bytes.BytesStore> kvStore) |
Modifier and Type | Method and Description |
---|---|
@NotNull Asset |
asset() |
void |
clear() |
boolean |
containsValue(String value) |
void |
entriesFor(int segment,
@NotNull SubscriptionConsumer<MapEvent<String,String>> kvConsumer) |
@NotNull Iterator<Map.Entry<String,String>> |
entrySetIterator() |
@Nullable String |
getAndPut(String key,
@NotNull String value) |
@Nullable String |
getAndRemove(String key) |
@Nullable String |
getUsing(String key,
Object value) |
void |
keysFor(int segment,
SubscriptionConsumer<String> kConsumer) |
@NotNull Class<String> |
keyType() |
long |
longSize() |
protected void |
performClose() |
boolean |
put(String key,
@NotNull String value)
put an entry
|
boolean |
remove(String key)
remove a key
|
@NotNull ObjectSubscription<String,String> |
subscription(boolean createIfAbsent) |
KeyValueStore |
underlying() |
@NotNull Class<String> |
valueType() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
containsKey, get, isKeyType, isReadOnly, keySetIterator, putIfAbsent, removeIfEqual, replace, replaceIfEqual, segmentFor, segments, valuesIterator
close, closeQuietly, closeQuietly
public VanillaStringStringKeyValueStore(RequestContext context, @NotNull @NotNull Asset asset, @NotNull @NotNull SubscriptionKeyValueStore<String,net.openhft.chronicle.bytes.BytesStore> kvStore)
@NotNull public @NotNull Class<String> keyType()
keyType
in interface ObjectKeyValueStore<String,String>
@NotNull public @NotNull Class<String> valueType()
valueType
in interface ObjectKeyValueStore<String,String>
@NotNull public @NotNull ObjectSubscription<String,String> subscription(boolean createIfAbsent)
subscription
in interface SubscriptionKeyValueStore<String,String>
public boolean put(String key, @NotNull @NotNull String value)
KeyValueStore
put
in interface KeyValueStore<String,String>
key
- to setvalue
- to set@Nullable public @Nullable String getAndPut(String key, @NotNull @NotNull String value)
getAndPut
in interface KeyValueStore<String,String>
public boolean remove(String key)
KeyValueStore
remove
in interface KeyValueStore<String,String>
key
- to remove@Nullable public @Nullable String getAndRemove(String key)
getAndRemove
in interface KeyValueStore<String,String>
@Nullable public @Nullable String getUsing(String key, Object value)
getUsing
in interface KeyValueStore<String,String>
public long longSize()
longSize
in interface KeyValueStore<String,String>
public void keysFor(int segment, SubscriptionConsumer<String> kConsumer) throws InvalidSubscriberException
keysFor
in interface KeyValueStore<String,String>
InvalidSubscriberException
public void entriesFor(int segment, @NotNull @NotNull SubscriptionConsumer<MapEvent<String,String>> kvConsumer) throws InvalidSubscriberException
entriesFor
in interface KeyValueStore<String,String>
InvalidSubscriberException
@NotNull public @NotNull Iterator<Map.Entry<String,String>> entrySetIterator()
entrySetIterator
in interface KeyValueStore<String,String>
public void clear()
clear
in interface KeyValueStore<String,String>
public boolean containsValue(String value)
containsValue
in interface KeyValueStore<String,String>
@NotNull public @NotNull Asset asset()
asset
in interface Assetted<KeyValueStore<String,String>>
public KeyValueStore underlying()
underlying
in interface Assetted<KeyValueStore<String,String>>
protected void performClose()
performClose
in class net.openhft.chronicle.core.io.SimpleCloseable
Copyright © 2021. All rights reserved.