Package org.infinispan.api.mutiny
Interface MutinyStreamingCache<K>
public interface MutinyStreamingCache<K>
SyncStreamingCache implements streaming versions of most
SyncCache
methods- Since:
- 14.0
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the value of the specified key as anMutinyStreamingCache.CacheEntrySubscriber
.get
(K key, io.smallrye.mutiny.subscription.BackPressureStrategy backPressureStrategy, CacheOptions options) Retrieves the value of the specified key as anMutinyStreamingCache.CacheEntrySubscriber
.Initiates a streaming put operation.put
(K key, CacheWriteOptions options, io.smallrye.mutiny.subscription.BackPressureStrategy backPressureStrategy) Initiates a streaming put operation.putIfAbsent
(K key, io.smallrye.mutiny.subscription.BackPressureStrategy backPressureStrategy) 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 options, io.smallrye.mutiny.subscription.BackPressureStrategy backPressureStrategy) 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
default MutinyStreamingCache.CacheEntrySubscriber get(K key, io.smallrye.mutiny.subscription.BackPressureStrategy backPressureStrategy) Retrieves the value of the specified key as anMutinyStreamingCache.CacheEntrySubscriber
. The marshaller is ignored, i.e. all data will be read in its raw binary form.- Parameters:
key
- key to usebackPressureStrategy
- theBackPressureStrategy
to apply
-
get
MutinyStreamingCache.CacheEntrySubscriber get(K key, io.smallrye.mutiny.subscription.BackPressureStrategy backPressureStrategy, CacheOptions options) Retrieves the value of the specified key as anMutinyStreamingCache.CacheEntrySubscriber
. The marshaller is ignored, i.e. all data will be read in its raw binary form.- Parameters:
key
- key to usebackPressureStrategy
- theBackPressureStrategy
to applyoptions
-
-
put
default MutinyStreamingCache.CacheEntryPublisher put(K key, io.smallrye.mutiny.subscription.BackPressureStrategy backPressureStrategy) Initiates a streaming put operation. It is up to the application to write to the returnedMultiEmitter
and complete 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 returnedMultiEmitter
is not thread-safe.- Parameters:
key
- key to usebackPressureStrategy
- theBackPressureStrategy
to apply
-
put
MutinyStreamingCache.CacheEntryPublisher put(K key, CacheWriteOptions options, io.smallrye.mutiny.subscription.BackPressureStrategy backPressureStrategy) Initiates a streaming put operation. It is up to the application to write to the returnedMultiEmitter
and complete 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 returnedMultiEmitter
is not thread-safe.- Parameters:
key
- key to useoptions
-backPressureStrategy
- theBackPressureStrategy
to apply
-
putIfAbsent
default MutinyStreamingCache.CacheEntryPublisher putIfAbsent(K key, io.smallrye.mutiny.subscription.BackPressureStrategy backPressureStrategy) 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 theMultiEmitter
has been completed. The returnedMultiEmitter
is not thread-safe.- Parameters:
key
- key to usebackPressureStrategy
- theBackPressureStrategy
to apply
-
putIfAbsent
MutinyStreamingCache.CacheEntryPublisher putIfAbsent(K key, CacheWriteOptions options, io.smallrye.mutiny.subscription.BackPressureStrategy backPressureStrategy) 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 theMultiEmitter
has been completed. The returnedMultiEmitter
is not thread-safe.- Parameters:
key
- key to useoptions
- the entry expirationbackPressureStrategy
- theBackPressureStrategy
to apply
-