com.google.common.eventbus.DeadEvent Java Examples
The following examples show how to use
com.google.common.eventbus.DeadEvent.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PubsubEventModule.java From attic-aurora with Apache License 2.0 | 5 votes |
@Provides @DeadEventHandler @Singleton Object provideDeadEventHandler(StatsProvider statsProvider) { final AtomicLong deadEventCounter = statsProvider.makeCounter(EVENT_BUS_DEAD_EVENTS); return new Object() { @Subscribe public void logDeadEvent(DeadEvent event) { deadEventCounter.incrementAndGet(); log.warn(String.format(DEAD_EVENT_MESSAGE, event.getEvent())); } }; }
Example #2
Source File: LoggingDeadEventListener.java From booties with Apache License 2.0 | 4 votes |
@Subscribe public void handleDeadEvent(final DeadEvent deadEvent) { LOG.warn("Ooops, no listener found for this event: {}", deadEvent.getEvent()); latch.countDown(); }
Example #3
Source File: Broadcaster.java From kickflip-android-sdk with Apache License 2.0 | 4 votes |
@Subscribe public void onDeadEvent(DeadEvent e) { if (VERBOSE) Log.i(TAG, "DeadEvent "); }
Example #4
Source File: EventListener.java From tutorials with MIT License | 4 votes |
@Subscribe public void handleDeadEvent(DeadEvent deadEvent) { LOG.info("unhandled event [" + deadEvent.getEvent() + "]"); eventsHandled++; }
Example #5
Source File: BehaviourManagerImpl.java From AisAbnormal with GNU Lesser General Public License v3.0 | 4 votes |
@Subscribe @SuppressWarnings("unused") public void listen(DeadEvent event) { LOG.trace("No subscribers were interested in this event: " + event.getEvent()); }
Example #6
Source File: NodeImpl.java From xraft with MIT License | 2 votes |
/** * Dead event. * <p> * Source: event-bus. * </p> * * @param deadEvent dead event */ @Subscribe public void onReceiveDeadEvent(DeadEvent deadEvent) { logger.warn("dead event {}", deadEvent); }