Package org.infinispan.api.async
Interface AsyncStreamingCache<K>
public interface AsyncStreamingCache<K>
AsyncStreamingCache implements streaming versions of put and get methods
- Since:
- 14.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the value of the specified key as aAsyncStreamingCache.CacheEntrySubscriber.get(K key, CacheOptions metadata) Retrieves the value of the specified key as aAsyncStreamingCache.CacheEntrySubscriber.Initiates a streaming put operation.put(K key, CacheWriteOptions metadata) Initiates a streaming put operation.putIfAbsent(K key) A conditional form of put which inserts an entry into the cache only if no mapping for the key is already present.putIfAbsent(K key, CacheWriteOptions metadata) A conditional form of put which inserts an entry into the cache only if no mapping for the key is already present.
-
Method Details
-
get
Retrieves the value of the specified key as aAsyncStreamingCache.CacheEntrySubscriber. It is up to the application to ensure that the data is consumed and closed. The marshaller is ignored, i.e. all data will be read in its raw binary form.- Parameters:
key- key to use
-
get
Retrieves the value of the specified key as aAsyncStreamingCache.CacheEntrySubscriber. It is up to the application to ensure that the data is consumed and closed. The marshaller is ignored, i.e. all data will be read in its raw binary form.- Parameters:
key- key to usemetadata-
-
put
Initiates a streaming put operation. It is up to the application to write to the returnedAsyncStreamingCache.CacheEntryPublisherand close it when there is no more data to write. The marshaller is ignored, i.e. all data will be written in its raw binary form. The returned output stream is not thread-safe.- Parameters:
key- key to use
-
put
Initiates a streaming put operation. It is up to the application to write to the returnedAsyncStreamingCache.CacheEntryPublisherand close it when there is no more data to write. The marshaller is ignored, i.e. all data will be written in its raw binary form. The returned output stream is not thread-safe.- Parameters:
key- key to usemetadata- metadata
-
putIfAbsent
A conditional form of put which inserts an entry into the cache only if no mapping for the key is already present. The operation is atomic. The server only performs the operation once the data is complete.- Parameters:
key- key to use
-
putIfAbsent
A conditional form of put which inserts an entry into the cache only if no mapping for the key is already present. The operation is atomic. The server only performs the operation once the data is complete.- Parameters:
key- key to usemetadata- metadata
-