Example usage for com.google.common.eventbus SubscriberExceptionHandler interface-usage

List of usage examples for com.google.common.eventbus SubscriberExceptionHandler interface-usage

Introduction

In this page you can find the example usage for com.google.common.eventbus SubscriberExceptionHandler interface-usage.

Usage

From source file com.ibm.og.test.LoadTestSubscriberExceptionHandler.java

/**
 * An {@code EventBus} exception handler. This handler aborts the OG load test when an eventbus
 * exception occurs.
 * 
 * @since 1.0
 */

From source file org.jbb.lib.eventbus.EventExceptionHandler.java

@Slf4j
@Component
class EventExceptionHandler implements SubscriberExceptionHandler {
    @Override
    public void handleException(Throwable exception, SubscriberExceptionContext context) {
        log.error("Error during event [{}] consuming by client {} in method {}", context.getEvent(), exception,

From source file org.muhia.app.psi.portal.eventbus.SyncEventBusService.java

/**
 * @author Kenneth Muhia <muhia@muhia.org>
 */
public class SyncEventBusService implements SubscriberExceptionHandler {

    //    public static final SyncEventBusService APPLICATION_EVENT_BUS = new SyncEventBusService();

From source file org.muhia.app.psi.portal.eventbus.AsyncEventbusService.java

/**
 * @author KennethKZMMuhia
 */
public class AsyncEventbusService implements SubscriberExceptionHandler {
    private EventBus eventBus = null;

From source file tv.phantombot.event.ExceptionHandler.java

public class ExceptionHandler implements SubscriberExceptionHandler {

    @Override
    public void handleException(Throwable thrwbl, SubscriberExceptionContext sec) {
        com.gmt2001.Console.err.println("Failed to dispatch event " + sec.getEvent().toString() + " to "
                + sec.getSubscriberMethod().toString());

From source file me.mast3rplan.phantombot.event.ExceptionHandler.java

public class ExceptionHandler implements SubscriberExceptionHandler {

    @Override
    public void handleException(Throwable thrwbl, SubscriberExceptionContext sec) {
        com.gmt2001.Console.err.println("Failed to dispatch event " + sec.getEvent().toString() + " to "
                + sec.getSubscriberMethod().toString());

From source file me.gloriouseggroll.quorrabot.event.ExceptionHandler.java

public class ExceptionHandler implements SubscriberExceptionHandler {

    @Override
    public void handleException(Throwable thrwbl, SubscriberExceptionContext sec) {
        com.gmt2001.Console.err.println("Failed to dispatch event " + sec.getEvent().toString() + " to "
                + sec.getSubscriberMethod().toString());

From source file de.metas.ui.web.vaadin.event.UIEventBus.java

public class UIEventBus implements SubscriberExceptionHandler {
    private final EventBus eventBus = new EventBus(this);

    public static void post(final Object event) {
        RootUI.getCurrentEventBus().eventBus.post(event);
    }

From source file tech.mcprison.prison.util.EventExceptionHandler.java

/**
 * A custom exception handler that prints out a pretty and informational message to the console when
 * an exception occurs. This allows us to avoid making try... catch blocks in each subscriber method
 * (listener) if we wanted to see exception data, which is quite nice, don't you think?
 *
 * @author Faizaan A. Datoo

From source file org.sonatype.nexus.common.event.Slf4jSubscriberExceptionHandler.java

/**
 * Slf4j logging {@link SubscriberExceptionHandler}.
 *
 * @since 3.0
 */
final class Slf4jSubscriberExceptionHandler implements SubscriberExceptionHandler {