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

Retry stage needs more flexible signatures #668

Open
akara opened this issue Jun 9, 2018 · 0 comments
Open

Retry stage needs more flexible signatures #668

akara opened this issue Jun 9, 2018 · 0 comments

Comments

@akara
Copy link
Contributor

akara commented Jun 9, 2018

Currently, the Retry stage takes (T, C) in and (Try[U], C) out. In some cases, the input is already derived from the context C and the output is attached to the context C. So we end up with concrete input types like (NotUsed, C) in and (Try[Done], C) output. In Scala this is not such a big deal. In Java it makes the signature very long.

If there is a decider, it can also decide based on attributes of C whether it should be retried or not. That makes the Retry use just the type signature [C, C, C, C, NotUsed].

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

No branches or pull requests

1 participant