Interface InfinispanAsyncMap<K,V>
public interface InfinispanAsyncMap<K,V>
Extensions to the generic
AsyncMap.- Author:
- Thomas Segismont
-
Method Summary
Modifier and TypeMethodDescriptionGet the entries of the map as aReadStream.Get the keys of the map as aReadStream.static <K,V> InfinispanAsyncMap <K, V> Unwraps a genericAsyncMapto anInfinispanAsyncMap.Get the values of the map as aReadStream.
-
Method Details
-
keyStream
ReadStream<K> keyStream()Get the keys of the map as aReadStream.The stream will be automatically closed if it fails or ends. Otherwise you must set a null
data handlerafter usage to avoid leaking resources.- Returns:
- a stream of map keys
-
valueStream
ReadStream<V> valueStream()Get the values of the map as aReadStream.The stream will be automatically closed if it fails or ends. Otherwise you must set a null
data handlerafter usage to avoid leaking resources.- Returns:
- a stream of map values
-
entryStream
ReadStream<Map.Entry<K,V>> entryStream()Get the entries of the map as aReadStream.The stream will be automatically closed if it fails or ends. Otherwise you must set a null
data handlerafter usage to avoid leaking resources.- Returns:
- a stream of map entries