-
-
Save caponetto/fae56ba2f1be8ba059a49cad10eecc65 to your computer and use it in GitHub Desktop.
Backend sample service: Java service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.kie.kogito.extended.services.quarkus.sample; | |
import javax.enterprise.context.ApplicationScoped; | |
@ApplicationScoped | |
public class SampleServiceImpl implements SampleService { | |
@Override | |
public String hello(final String name, int delay) { | |
if (delay > 0) { | |
try { | |
Thread.sleep(delay); | |
} catch (InterruptedException e) { | |
e.printStackTrace(); | |
} | |
} | |
return "Hello, " + name + "!"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment