Public Member Functions | |
Class<?>[] | producer () default |
Class<?>[] | event () default |
String[] | anyTag () default |
String[] | eachTag () default |
Tags a method as pooled event handler within a consumer, which may be called by the Events class. The method needs two arguments, the producer and the event. The producer is optional. The method will only be called if the type of the producer and the event fits the parameters and optionally the specified types. The method will be called by an execution pool defined in the Events class.
String [] org.qscript.eventsonfire.PooledEventHandler.anyTag | ( | ) |
Optional. One or more tags - the event has to be fired with at least one of these tags to trigger the event handler.
String [] org.qscript.eventsonfire.PooledEventHandler.eachTag | ( | ) |
Optional. One or more tags - the event has to be fired with all of these tags to trigger the event handler.
Class<?> [] org.qscript.eventsonfire.PooledEventHandler.event | ( | ) |
Optional. One or more classes of events handled by the method. Checked against the event argument. If empty, all classes are allowed that fit the events argument.
Class<?> [] org.qscript.eventsonfire.PooledEventHandler.producer | ( | ) |
Optional. One or more classes of producers handled by the method. Checked against the optional producer argument. If empty and a producer argument is specified, all classes are allowed that fit the producer argument. If empty and no producer argument is specified, all producers are allowed.