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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic 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- theBackPressureStrategyto 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- theBackPressureStrategyto 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 returnedMultiEmitterand 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 returnedMultiEmitteris not thread-safe.- Parameters:
key- key to usebackPressureStrategy- theBackPressureStrategyto 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 returnedMultiEmitterand 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 returnedMultiEmitteris not thread-safe.- Parameters:
key- key to useoptions-backPressureStrategy- theBackPressureStrategyto 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 theMultiEmitterhas been completed. The returnedMultiEmitteris not thread-safe.- Parameters:
key- key to usebackPressureStrategy- theBackPressureStrategyto 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 theMultiEmitterhas been completed. The returnedMultiEmitteris not thread-safe.- Parameters:
key- key to useoptions- the entry expirationbackPressureStrategy- theBackPressureStrategyto apply
-