Annotation Interface WampProcedure


@Target(METHOD) @Retention(RUNTIME) @Documented public @interface WampProcedure
Annotation that denotes a method that is called when the Dealer receives a CallMessage and the procedure name matches the configured value() or name() attribute. If no procedure name is configured the method listens for the name 'beanName.methodName'

The method feed in the following example listens for CallMessage that are sent with the procedure name 'myService.feed'.

The method fetchNews is called by the library when a CallMessage with the procedure name 'fetch.news' arrives.

 @Service
 public class MyService {

        @WampProcedure
        public List feed() {
        }

        @WampProcedure("fetch.news")
        public List fetchNews() {
        }
 }
 
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Register the annotated method with this procedure name.
    Register the annotated method with this procedure name.
  • Element Details

    • value

      @AliasFor("name") String value
      Register the annotated method with this procedure name. If empty the default 'beanName.methodName' is used.
      Default:
      ""
    • name

      @AliasFor("value") String name
      Register the annotated method with this procedure name. If empty the default 'beanName.methodName' is used.
      Default:
      ""