Interface MutinyStreamingCache<K>


public interface MutinyStreamingCache<K>
SyncStreamingCache implements streaming versions of most SyncCache methods
Since:
14.0
  • Method Details

    • get

      default MutinyStreamingCache.CacheEntrySubscriber get(K key, io.smallrye.mutiny.subscription.BackPressureStrategy backPressureStrategy)
      Retrieves the value of the specified key as an MutinyStreamingCache.CacheEntrySubscriber. The marshaller is ignored, i.e. all data will be read in its raw binary form.
      Parameters:
      key - key to use
      backPressureStrategy - the BackPressureStrategy to apply
    • get

      MutinyStreamingCache.CacheEntrySubscriber get(K key, io.smallrye.mutiny.subscription.BackPressureStrategy backPressureStrategy, CacheOptions options)
      Retrieves the value of the specified key as an MutinyStreamingCache.CacheEntrySubscriber. The marshaller is ignored, i.e. all data will be read in its raw binary form.
      Parameters:
      key - key to use
      backPressureStrategy - the BackPressureStrategy to apply
      options -
    • 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 returned MultiEmitter 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 returned MultiEmitter is not thread-safe.
      Parameters:
      key - key to use
      backPressureStrategy - the BackPressureStrategy 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 returned MultiEmitter 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 returned MultiEmitter is not thread-safe.
      Parameters:
      key - key to use
      options -
      backPressureStrategy - the BackPressureStrategy 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 the MultiEmitter has been completed. The returned MultiEmitter is not thread-safe.
      Parameters:
      key - key to use
      backPressureStrategy - the BackPressureStrategy 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 the MultiEmitter has been completed. The returned MultiEmitter is not thread-safe.
      Parameters:
      key - key to use
      options - the entry expiration
      backPressureStrategy - the BackPressureStrategy to apply