クラス RedisItemWriterBuilder<K,V>

java.lang.ObjectSE
org.springframework.batch.item.redis.builder.RedisItemWriterBuilder<K,V>

public class RedisItemWriterBuilder<K,V> extends ObjectSE
RedisItemWriter のビルダー。
導入:
5.1
作成者:
Mahmoud Ben Hassine
  • コンストラクターの詳細

    • RedisItemWriterBuilder

      public RedisItemWriterBuilder()
  • メソッドの詳細

    • redisTemplate

      public RedisItemWriterBuilder<K,V> redisTemplate(org.springframework.data.redis.core.RedisTemplate<K,V> redisTemplate)
      Redis への項目の書き込みに使用する RedisTemplate を設定します。
      パラメーター:
      redisTemplate - 使用するテンプレート。
      戻り値:
      ビルダーの現在のインスタンス。
      関連事項:
    • itemKeyMapper

      public RedisItemWriterBuilder<K,V> itemKeyMapper(org.springframework.core.convert.converter.Converter<V,K> itemKeyMapper)
      アイテムからキーを導出するために使用する Converter を設定します。
      パラメーター:
      itemKeyMapper - 使用するコンバーター。
      戻り値:
      ビルダーの現在のインスタンス。
      関連事項:
    • delete

      public RedisItemWriterBuilder<K,V> delete(boolean delete)
      ライターに渡されるアイテムを削除する必要があるかどうかを示します。
      パラメーター:
      delete - 取り外しインジケータ。
      戻り値:
      ビルダーの現在のインスタンス。
      関連事項:
    • build

      public RedisItemWriter<K,V> build()
      RedisItemWriter を検証および構築します。
      戻り値:
      RedisItemWriter