object Service
- Source
- Service.scala
- Alphabetic
- By Inheritance
- Service
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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.
-
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.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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 thepathPattern
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.
-
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 thepathPattern
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.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()