Annotation Interface UponMessageIn


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface UponMessageIn
Marks a method as a handler for an inbound BabelMessage.

The annotated method must accept two parameters: a concrete subtype of BabelMessage and a BabelNode. The runtime dispatches messages of the declared type to this method, passing the sender as the second argument.

@UponMessageIn
public void onFoo(FooMessage msg, BabelNode sender) { ... }