Skip to content

Instantly share code, notes, and snippets.

@albertoaflores
Created November 30, 2019 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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