Packages

object Service

Source
Service.scala
Linear Supertypes
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
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def call[Request, Response](method: ScalaMethodServiceCall[Request, Response])(implicit requestSerializer: MessageSerializer[Request, _], responseSerializer: MessageSerializer[Response, _]): Call[Request, Response]

    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
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def named(name: String): Descriptor

    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]

    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
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def pathCall[Request, Response](pathPattern: String, method: ScalaMethodServiceCall[Request, Response])(implicit requestSerializer: MessageSerializer[Request, _], responseSerializer: MessageSerializer[Response, _]): Call[Request, Response]

    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]

    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
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. def topic[Message](topicId: String, method: ScalaMethodTopic[Message])(implicit messageSerializer: MessageSerializer[Message, ByteString]): TopicCall[Message]

    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
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped