Package

com.avsystem.commons

rpc

Permalink

package rpc

Visibility
  1. Public
  2. All

Type Members

  1. class RPC extends Annotation with StaticAnnotation

    Permalink

    Marker annotation for all RPC interfaces.

    Marker annotation for all RPC interfaces. Must be applied on every trait/class representing an RPC interface.

    An RPC interface is a trait or class whose abstract methods will be interpreted as remote methods by the RPC framework. Remote methods must be defined according to following rules:

    • types of arguments must be serializable by uPickle library
    • return type must be either Unit, Future[T] where T is a type serializable by uPickle library or another RPC interface
    • method must not have type parameters

    RPC interfaces may also have non-abstract members - these will be invoked locally. However, they may invoke remote members in their implementations.

  2. class RPCName extends Annotation with StaticAnnotation

    Permalink

    You can use this annotation on overloaded RPC methods to give them unique identifiers for RPC serialization.

Ungrouped