Annotation Type IoHandlerTransition


  • @Retention(RUNTIME)
    @Target(METHOD)
    public @interface IoHandlerTransition
    Annotation used on methods to indicate that the method handles a specific kind of IoHandlerEvents event when in a specific state. This should be used when creating StateMachines for MINA's IoHandler interface.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String[] in  
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String next  
      IoHandlerEvents[] on  
      int weight  
    • Element Detail

      • in

        java.lang.String[] in
        Returns:
        The id of the state or states that this handler applies to. Must be specified.
      • on

        IoHandlerEvents[] on
        Returns:
        Specifies the ids of one or more events handled by the annotated method. If not specified the handler method will be executed for any event.
        Default:
        {org.apache.mina.statemachine.event.IoHandlerEvents.ANY}
      • next

        java.lang.String next
        Returns:
        The id of the state the StateMachine should move to next after executing the annotated method. If not specified the StateMachine will remain in the same state.
        Default:
        "__self__"
      • weight

        int weight
        Returns:
        The weight used to order handler annotations which match the same event in the same state. Transitions with lower weight will be matched first. The default weight is 0.
        Default:
        0