Object/Trait

com.lightbend.lagom.scaladsl.api

Service

Related Docs: trait Service | package api

Permalink

object Service

Source
Service.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Service
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def call[Request, Response](method: ScalaMethodServiceCall[Request, Response])(implicit requestSerializer: MessageSerializer[Request, _], responseSerializer: MessageSerializer[Response, _]): Call[Request, Response]

    Permalink

    Create a named service call descriptor, identified by the name of the method that implements the service call.

    Create a named service call descriptor, identified by the name of the method that implements the service call.

    The method parameter can be provided by passing a reference to the function that provides the service call. ServiceSupport provides a number of implicit conversions and macros for converting these references to a ScalaMethodServiceCall, which captures the actual method.

    The DSL allows the following ways to pass method references:

    // Eta-expanded method on this call(getItem _) // Invocation of parameterless method on this call(getItem) // Invocation of zero argument method on this call(getItem())

    The service call may or may not be qualified by this. These are the only forms that the DSL permits, the macro that implements this will inspect the passed in Scala AST to extract which method is invoked. Anything else passed will result in a compilation failure.

    method

    A reference to the service call method.

    returns

    A named service call descriptor.

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. def named(name: String): Descriptor

    Permalink

    Create a descriptor for a service with the given name.

    Create a descriptor for a service with the given name.

    name

    The name of the service.

    returns

    The descriptor.

  14. def namedCall[Request, Response](name: String, method: ScalaMethodServiceCall[Request, Response])(implicit requestSerializer: MessageSerializer[Request, _], responseSerializer: MessageSerializer[Response, _]): Call[Request, Response]

    Permalink

    Create a named service call descriptor, identified by the given name.

    Create a named service call descriptor, identified by the given name.

    The method parameter can be provided by passing a reference to the function that provides the service call. ServiceSupport provides a number of implicit conversions and macros for converting these references to a ScalaMethodServiceCall, which captures the actual method.

    The DSL allows the following ways to pass method references:

    // Eta-expanded method on this namedCall("item", getItem _) // Invocation of parameterless method on this namedCall("item", getItem) // Invocation of zero argument method on this namedCall("item", getItem())

    The service call may or may not be qualified by this. These are the only forms that the DSL permits, the macro that implements this will inspect the passed in Scala AST to extract which method is invoked. Anything else passed will result in a compilation failure.

    name

    The name of the service call.

    method

    A reference to the service call method.

    returns

    A named service call descriptor.

  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. def pathCall[Request, Response](pathPattern: String, method: ScalaMethodServiceCall[Request, Response])(implicit requestSerializer: MessageSerializer[Request, _], responseSerializer: MessageSerializer[Response, _]): Call[Request, Response]

    Permalink

    Create a path service call descriptor, identified by the given path pattern.

    Create a path service call descriptor, identified by the given path pattern.

    The method parameter can be provided by passing a reference to the function that provides the service call. ServiceSupport provides a number of implicit conversions and macros for converting these references to a ScalaMethodServiceCall, which captures the actual method, as well as the implicit serializers necessary to convert the path parameters specified in the pathPattern to and from the arguments for the method.

    The DSL allows the following ways to pass method references:

    // Eta-expanded method on this pathCall("/item/:id", getItem _) // Invocation of parameterless method on this pathCall("/items", getItem) // Invocation of zero argument method on this pathCall("/items", getItem())

    The service call may or may not be qualified by this. These are the only forms that the DSL permits, the macro that implements this will inspect the passed in Scala AST to extract which method is invoked. Anything else passed will result in a compilation failure.

    pathPattern

    The path pattern.

    method

    A reference to the service call method.

    returns

    A path based service call descriptor.

  19. def restCall[Request, Response](method: Method, pathPattern: String, scalaMethod: ScalaMethodServiceCall[Request, Response])(implicit requestSerializer: MessageSerializer[Request, _], responseSerializer: MessageSerializer[Response, _]): Call[Request, Response]

    Permalink

    Create a REST service call descriptor, identified by the given HTTP method and path pattern.

    Create a REST service call descriptor, identified by the given HTTP method and path pattern.

    The scalaMethod parameter can be provided by passing a reference to the function that provides the service call. ServiceSupport provides a number of implicit conversions and macros for converting these references to a ScalaMethodServiceCall, which captures the actual method, as well as the implicit serializers necessary to convert the path parameters specified in the pathPattern to and from the arguments for the method.

    The DSL allows the following ways to pass method references:

    // Eta-expanded method on this restCall(Method.GET, "/item/:id", getItem _) // Invocation of parameterless method on this restCall(Method.GET, "/items", getItem) // Invocation of zero argument method on this restCall(Method.GET, "/items", getItem())

    The service call may or may not be qualified by this. These are the only forms that the DSL permits, the macro that implements this will inspect the passed in Scala AST to extract which method is invoked. Anything else passed will result in a compilation failure.

    method

    The HTTP method.

    pathPattern

    The path pattern.

    scalaMethod

    A reference to the service call method.

    returns

    A REST service call descriptor.

  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. def topic[Message](topicId: String, method: ScalaMethodTopic[Message])(implicit messageSerializer: MessageSerializer[Message, ByteString]): TopicCall[Message]

    Permalink

    Create a topic descriptor.

    Create a topic descriptor.

    The method parameter can be provided by passing a reference to the function that provides the topic. ServiceSupport provides a number of implicit conversions and macros for converting these references to a ScalaMethodServiceCall, which captures the actual method.

    The DSL allows the following ways to pass method references:

    // Eta-expanded method on this topic("item-events", itemEventStream _) // Invocation of parameterless method on this topic("item-events", itemEventStream) // Invocation of zero argument method on this topic("item-events", itemEventStream)

    The topic may or may not be qualified by this. These are the only forms that the DSL permits, the macro that implements this will inspect the passed in Scala AST to extract which method is invoked. Anything else passed will result in a compilation failure.

    topicId

    The name of the topic.

    method

    A reference to the topic method.

    returns

    A topic call descriptor.

  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped