damondouglas opened a new issue, #30582:
URL: https://github.com/apache/beam/issues/30582

   ### What would you like to happen?
   
   Currently 
[RequestResponseIO](https://beam.apache.org/releases/javadoc/current/org/apache/beam/io/requestresponse/RequestResponseIO.html)
 has two static methods `of` and `ofCallerSetupTeardown`, that accept 
implementations of `Caller` and `SetupTeardown` to instantiate the transform.
   
   New static 
[RequestResponseIO](https://beam.apache.org/releases/javadoc/current/org/apache/beam/io/requestresponse/RequestResponseIO.html)
 methods that instantiate its instance might look like:
   ```
   public static <RequestT, ResponseT> RequestResponseIO<RequestT, ResponseT> 
of(SerializableFunction<RequestT, ResponseT> callerFn) {
     }
   
     public static <RequestT, ResponseT> RequestResponseIO<RequestT, ResponseT> 
of(SerializableFunction<RequestT, ResponseT> callerFn, SerializableRunnable 
setup, SerializableRunnable teardown) {
     }
   ```
   
   These may ease some friction for certain developers use cases that do not 
need entire Caller, SetupTeardown classes.
   
   ### Issue Priority
   
   Priority: 3 (nice-to-have improvement)
   
   ### Issue Components
   
   - [ ] Component: Python SDK
   - [X] Component: Java SDK
   - [ ] Component: Go SDK
   - [ ] Component: Typescript SDK
   - [ ] Component: IO connector
   - [ ] Component: Beam YAML
   - [ ] Component: Beam examples
   - [ ] Component: Beam playground
   - [ ] Component: Beam katas
   - [ ] Component: Website
   - [ ] Component: Spark Runner
   - [ ] Component: Flink Runner
   - [ ] Component: Samza Runner
   - [ ] Component: Twister2 Runner
   - [ ] Component: Hazelcast Jet Runner
   - [ ] Component: Google Cloud Dataflow Runner


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to