K - Type of region keys.V - Type of region values.@Experimental public class ProtobufRegion<K,V> extends java.lang.Object implements Region<K,V>
| Modifier and Type | Method and Description |
|---|---|
V |
get(K key)
Gets the value, if any, contained in this region for the
key. |
java.util.Map<K,V> |
getAll(java.util.Collection<K> keys)
Gets the values, if any, contained in this region for the collection of
keys. |
RegionAttributes |
getRegionAttributes()
Captures a snapshot of the attributes (e.g., size) of this region.
|
void |
put(K key,
V value)
Puts the
value into this region for the key. |
void |
putAll(java.util.Map<K,V> values)
Puts the map from keys to
values into this region. |
void |
remove(K key)
Removes any value associated with the
key from this region. |
public V get(K key) throws java.io.IOException
Regionkey.public RegionAttributes getRegionAttributes() throws java.io.IOException
RegiongetRegionAttributes in interface Region<K,V>java.io.IOExceptionpublic java.util.Map<K,V> getAll(java.util.Collection<K> keys) throws java.io.IOException
Regionkeys.public void put(K key, V value) throws java.io.IOException
Regionvalue into this region for the key.public void putAll(java.util.Map<K,V> values) throws java.io.IOException
Regionvalues into this region. If any one key/value pair can
not be inserted, the remaining pair insertions will be attempted.