Skip to content

Instantly share code, notes, and snippets.

@caponetto
Last active September 11, 2020 14:47
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 caponetto/fae56ba2f1be8ba059a49cad10eecc65 to your computer and use it in GitHub Desktop.
Save caponetto/fae56ba2f1be8ba059a49cad10eecc65 to your computer and use it in GitHub Desktop.
Backend sample service: Java service
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