Class RedisItemReaderBuilder<K,V>

java.lang.Object
org.springframework.batch.item.redis.builder.RedisItemReaderBuilder<K,V>
Type Parameters:
K - type of keys
V - type of values

public class RedisItemReaderBuilder<K,V> extends Object
Builder for RedisItemReader.
Since:
5.1
Author:
Mahmoud Ben Hassine
  • Constructor Details

    • RedisItemReaderBuilder

      public RedisItemReaderBuilder()
  • Method Details

    • redisTemplate

      public RedisItemReaderBuilder<K,V> redisTemplate(org.springframework.data.redis.core.RedisTemplate<K,V> redisTemplate)
      Set the RedisTemplate to use in the reader.
      Parameters:
      redisTemplate - the template to use
      Returns:
      the current builder instance for fluent chaining
    • scanOptions

      public RedisItemReaderBuilder<K,V> scanOptions(org.springframework.data.redis.core.ScanOptions scanOptions)
      Set the ScanOptions to select the key set.
      Parameters:
      scanOptions - the scan option to use
      Returns:
      the current builder instance for fluent chaining
    • build

      public RedisItemReader<K,V> build()
      Build a new RedisItemReader.
      Returns:
      a new item reader