is it a problem or bad practice to not return void from a method, that is annotated as @RabbitListener?
For re-use in synchronous processing I changed the method, to return the result instead of void:
<code>@RabbitListener
public Object methodname(Object task) {
..
return result;
}
</code>
<code>@RabbitListener
public Object methodname(Object task) {
..
return result;
}
</code>
@RabbitListener
public Object methodname(Object task) {
..
return result;
}
It’s clear, that result is not directly available after async invocation.