Annotation Interface Service


@Target(TYPE) @Retention(SOURCE) public @interface Service
Annotation to define a class/interface as Restate Service. This triggers the code generation of the related Client class and the ServiceDefinitionFactory.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Name of the Service for Restate.
  • Element Details

    • name

      String name
      Name of the Service for Restate. If not provided, it will be the simple class name of the annotated element.
      Default:
      ""