Module io.jooby

Annotation Interface Dispatch


@Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface Dispatch
Dispatch operator for MVC routes.
   @Path("/r")
   class Resources {

     @Dispatch
     @GET
     public ... dispatch() {
       // do blocking calls
     }
   }
 
Since:
2.0.0
Author:
edgar
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Name of the executor to use or blank to use the server worker executor.
  • Element Details

    • value

      String value
      Name of the executor to use or blank to use the server worker executor.
      Returns:
      Name of the executor to use or blank to use the server worker executor.
      Default:
      "worker"