Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RRIO]: New static RequestResponseIO instantiating methods to accept call, setup, teardown lambdas #30582

Open
damondouglas opened this issue Mar 8, 2024 · 3 comments
Assignees

Comments

@damondouglas
Copy link
Contributor

damondouglas commented Mar 8, 2024

What would you like to happen?

Currently RequestResponseIO has two static methods of and ofCallerSetupTeardown, that accept implementations of Caller and SetupTeardown to instantiate the transform.

New static RequestResponseIO 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.

@Abdurrahman-shaikh
Copy link

hey @damondouglas i want to contribute to java project could you please assign this issue to me

@Abdurrahman-shaikh
Copy link

.take-issue

@damondouglas
Copy link
Contributor Author

Good day, @Abdurrahman-shaikh, Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants