Dispatches event to this subscriber using the proper executor.
(final Object event)
| 72 | */ |
| 73 | |
| 74 | final void dispatchEvent(final Object event) { |
| 75 | executor.execute(new Runnable() { |
| 76 | @Override |
| 77 | public void run() { |
| 78 | try { |
| 79 | invokeSubscriberMethod(event); |
| 80 | } catch (InvocationTargetException e) { |
| 81 | bus.handleSubscriberException(e.getCause(), context(event)); |
| 82 | } |
| 83 | } |
| 84 | }); |
| 85 | } |
| 86 | |
| 87 | /** |
| 88 | * Invokes the subscriber method. This method can be overridden to make the invocation |