Skip to content

Instantly share code, notes, and snippets.

@albertoaflores
Created November 30, 2019 12:30
Show Gist options
  • Save albertoaflores/07daec18674e5ffbceab3a800687a6e2 to your computer and use it in GitHub Desktop.
Save albertoaflores/07daec18674e5ffbceab3a800687a6e2 to your computer and use it in GitHub Desktop.
Using Async to force multiple threads to create payloads.
@Async("myThreadPoolTaskExecutor")
public Object createPayload() {
// return payload pojo
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment