Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-10066

Add support for ValueProviders in RedisConnectionConfiguration

Details

    • Improvement
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 2.20.0
    • 2.23.0
    • io-java-redis
    • None

    Description

      RedisIO doesn't have support for `ValueProvider` when setting up the connection with Redis, therefore I cannot provide the connection at runtime of the application only at compile time.

      This will involve wrapping the RedisConnectionConfiguration with ValueProvider and ensuring that the building the configuration still supports values without ValueProvider.

      E.g.:

       

      public abstract class RedisConnectionConfiguration implements Serializable {
      
        abstract ValueProvider<String> host();
      
        abstract ValueProvider<Integer> port();
      
        @Nullable
        abstract ValueProvider<String> auth();
      
        abstract ValueProvider<Integer> timeout();
      
        abstract ValueProvider<Boolean> ssl();
      
        abstract Builder builder();
      }
       
      

       

      Attachments

        Issue Links

          Activity

            People

              naipath Teije van Sloten
              naipath Teije van Sloten
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h