Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
package com.springbootdev.samples.springbootasynctask.worker;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
public class NonAsyncWorker
private static final Logger LOGGER = LoggerFactory.getLogger(NonAsyncWorker.class);
public void execute()
{"NonAsyncWorker : current thread [" + Thread.currentThread().getName() + "]");
try {
} catch (InterruptedException ex) {" sleeping thread interrupted ");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment