|
|
|
@ -519,15 +519,21 @@ public interface RMap<K, V> extends ConcurrentMap<K, V>, RExpirable, RMapAsync<K
|
|
|
|
|
* <p>
|
|
|
|
|
* Use <code>org.redisson.client.codec.StringCodec</code> for Map keys.
|
|
|
|
|
* <p>
|
|
|
|
|
* Usage example:
|
|
|
|
|
* <pre>
|
|
|
|
|
* Codec valueCodec = ...
|
|
|
|
|
* RMap<String, MyObject> map = redissonClient.getMap("simpleMap", new CompositeCodec(StringCodec.INSTANCE, valueCodec, valueCodec));
|
|
|
|
|
*
|
|
|
|
|
* // or
|
|
|
|
|
*
|
|
|
|
|
* RMap<String, String> map = redissonClient.getMap("simpleMap", StringCodec.INSTANCE);
|
|
|
|
|
* </pre>
|
|
|
|
|
* <pre>
|
|
|
|
|
* Supported glob-style patterns:
|
|
|
|
|
* <p>
|
|
|
|
|
* h?llo subscribes to hello, hallo and hxllo
|
|
|
|
|
* <p>
|
|
|
|
|
* h*llo subscribes to hllo and heeeello
|
|
|
|
|
* <p>
|
|
|
|
|
* h[ae]llo subscribes to hello and hallo, but not hillo
|
|
|
|
|
*
|
|
|
|
|
* </pre>
|
|
|
|
|
* @see #readAllValues()
|
|
|
|
|
*
|
|
|
|
|
* @param keyPattern - key pattern
|
|
|
|
@ -542,15 +548,21 @@ public interface RMap<K, V> extends ConcurrentMap<K, V>, RExpirable, RMapAsync<K
|
|
|
|
|
* <p>
|
|
|
|
|
* Use <code>org.redisson.client.codec.StringCodec</code> for Map keys.
|
|
|
|
|
* <p>
|
|
|
|
|
* Usage example:
|
|
|
|
|
* <pre>
|
|
|
|
|
* Codec valueCodec = ...
|
|
|
|
|
* RMap<String, MyObject> map = redissonClient.getMap("simpleMap", new CompositeCodec(StringCodec.INSTANCE, valueCodec, valueCodec));
|
|
|
|
|
*
|
|
|
|
|
* // or
|
|
|
|
|
*
|
|
|
|
|
* RMap<String, String> map = redissonClient.getMap("simpleMap", StringCodec.INSTANCE);
|
|
|
|
|
* </pre>
|
|
|
|
|
* <pre>
|
|
|
|
|
* Supported glob-style patterns:
|
|
|
|
|
* <p>
|
|
|
|
|
* h?llo subscribes to hello, hallo and hxllo
|
|
|
|
|
* <p>
|
|
|
|
|
* h*llo subscribes to hllo and heeeello
|
|
|
|
|
* <p>
|
|
|
|
|
* h[ae]llo subscribes to hello and hallo, but not hillo
|
|
|
|
|
*
|
|
|
|
|
* </pre>
|
|
|
|
|
* @see #readAllValues()
|
|
|
|
|
*
|
|
|
|
|
* @param keyPattern - key pattern
|
|
|
|
@ -585,18 +597,27 @@ public interface RMap<K, V> extends ConcurrentMap<K, V>, RExpirable, RMapAsync<K
|
|
|
|
|
* Returns map entries collection.
|
|
|
|
|
* Map entries are loaded in batch. Batch size is <code>10</code>.
|
|
|
|
|
* If <code>keyPattern</code> is not null then only entries mapped by matched keys of this pattern are loaded.
|
|
|
|
|
* <p>
|
|
|
|
|
* Use <code>org.redisson.client.codec.StringCodec</code> for Map keys.
|
|
|
|
|
* <p>
|
|
|
|
|
* Usage example:
|
|
|
|
|
* <pre>
|
|
|
|
|
* Codec valueCodec = ...
|
|
|
|
|
* RMap<String, MyObject> map = redissonClient.getMap("simpleMap", new CompositeCodec(StringCodec.INSTANCE, valueCodec, valueCodec));
|
|
|
|
|
*
|
|
|
|
|
* // or
|
|
|
|
|
*
|
|
|
|
|
* RMap<String, String> map = redissonClient.getMap("simpleMap", StringCodec.INSTANCE);
|
|
|
|
|
* </pre>
|
|
|
|
|
* <pre>
|
|
|
|
|
* Supported glob-style patterns:
|
|
|
|
|
* <p>
|
|
|
|
|
* h?llo subscribes to hello, hallo and hxllo
|
|
|
|
|
* <p>
|
|
|
|
|
* h*llo subscribes to hllo and heeeello
|
|
|
|
|
* <p>
|
|
|
|
|
* h[ae]llo subscribes to hello and hallo, but not hillo
|
|
|
|
|
*
|
|
|
|
|
* </pre>
|
|
|
|
|
* @see #readAllEntrySet()
|
|
|
|
|
*
|
|
|
|
|
* @param keyPattern - key pattern
|
|
|
|
|
* @param keyPattern key pattern
|
|
|
|
|
* @return map entries collection
|
|
|
|
|
*/
|
|
|
|
|
Set<java.util.Map.Entry<K, V>> entrySet(String keyPattern);
|
|
|
|
@ -605,19 +626,28 @@ public interface RMap<K, V> extends ConcurrentMap<K, V>, RExpirable, RMapAsync<K
|
|
|
|
|
* Returns map entries collection.
|
|
|
|
|
* Map entries are loaded in batch. Batch size is defined by <code>count</code> param.
|
|
|
|
|
* If <code>keyPattern</code> is not null then only entries mapped by matched keys of this pattern are loaded.
|
|
|
|
|
* <p>
|
|
|
|
|
* Use <code>org.redisson.client.codec.StringCodec</code> for Map keys.
|
|
|
|
|
* <p>
|
|
|
|
|
* Usage example:
|
|
|
|
|
* <pre>
|
|
|
|
|
* Codec valueCodec = ...
|
|
|
|
|
* RMap<String, MyObject> map = redissonClient.getMap("simpleMap", new CompositeCodec(StringCodec.INSTANCE, valueCodec, valueCodec));
|
|
|
|
|
*
|
|
|
|
|
* // or
|
|
|
|
|
*
|
|
|
|
|
* RMap<String, String> map = redissonClient.getMap("simpleMap", StringCodec.INSTANCE);
|
|
|
|
|
* </pre>
|
|
|
|
|
* <pre>
|
|
|
|
|
* Supported glob-style patterns:
|
|
|
|
|
* <p>
|
|
|
|
|
* h?llo subscribes to hello, hallo and hxllo
|
|
|
|
|
* <p>
|
|
|
|
|
* h*llo subscribes to hllo and heeeello
|
|
|
|
|
* <p>
|
|
|
|
|
* h[ae]llo subscribes to hello and hallo, but not hillo
|
|
|
|
|
*
|
|
|
|
|
* </pre>
|
|
|
|
|
* @see #readAllEntrySet()
|
|
|
|
|
*
|
|
|
|
|
* @param keyPattern - key pattern
|
|
|
|
|
* @param count - size of entries batch
|
|
|
|
|
* @param keyPattern key pattern
|
|
|
|
|
* @param count size of entries batch
|
|
|
|
|
* @return map entries collection
|
|
|
|
|
*/
|
|
|
|
|
Set<java.util.Map.Entry<K, V>> entrySet(String keyPattern, int count);
|
|
|
|
|