public class HelloServiceImpl extends java.lang.Object implements HelloService
| Constructor and Description |
|---|
HelloServiceImpl(com.lightbend.lagom.javadsl.persistence.PersistentEntityRegistry persistentEntityRegistry) |
| Modifier and Type | Method and Description |
|---|---|
com.lightbend.lagom.javadsl.api.ServiceCall<akka.NotUsed,java.lang.String> |
hello(java.lang.String id)
Example:
curl http://localhost:9000/api/hello/a1
|
com.lightbend.lagom.javadsl.api.ServiceCall<GreetingMessage,akka.Done> |
useGreeting(java.lang.String id)
Example:
curl -H "Content-Type: application/json" -X POST -d '{"message": "Hi Alice"}' http://localhost:9000/api/hello/a1
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdescriptorcall, call, call, named, namedCall, namedCall, pathCall, pathCall, pathCall, pathCall, pathCall, pathCall, pathCall, pathCall, pathCall, pathCall, pathCall, pathCall, pathCall, restCall, restCall, restCall, restCall, restCall, restCall, restCall, restCall, restCall, restCall, restCall, restCall, restCall, topic, topic, topic@Inject public HelloServiceImpl(com.lightbend.lagom.javadsl.persistence.PersistentEntityRegistry persistentEntityRegistry)
public com.lightbend.lagom.javadsl.api.ServiceCall<akka.NotUsed,java.lang.String> hello(java.lang.String id)
HelloServicehello in interface HelloServicepublic com.lightbend.lagom.javadsl.api.ServiceCall<GreetingMessage,akka.Done> useGreeting(java.lang.String id)
HelloServiceuseGreeting in interface HelloService