You will need to examine the source code of the annotation processor for @Retry. You will find that there are functions under there, and that the result of the @Retry is to wrap the written function in a call to the implementation -- which takes the parameters as ordinary parameters, just as you would like.