Annotation Interface DiameterObserver


@Qualifier @Target({PARAMETER,METHOD,FIELD,CONSTRUCTOR}) @Retention(RUNTIME) public @interface DiameterObserver
Qualifier for the observer methods of a DiameterBean. A parameter of the observer method may be annotated with this annotation to filter the CDI observer method resolution. For example, to receive to receive messages with different command codes to different methods, a DiameterBean may use the following code:

  public void handleSTR(@Observes @DiameterObserver(code=275) Answer answer) {
   //Business logic.
  }


   public void handleCCA(@Observes @DiameterObserver(code=272) Answer answer) {
     //Business logic.
   }

 

Author:
Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    int
    Code of the diameter command associated with the message.
  • Element Details

    • code

      int code
      Code of the diameter command associated with the message.
      Returns:
      Code of the diameter command associated with the message