Examples of ExceptionHandler


Examples of com.lmax.disruptor.ExceptionHandler

        if (cls == null) {
            LOGGER.debug("No AsyncLogger.ExceptionHandler specified");
            return null;
        }
        try {
            final ExceptionHandler result = Loader.newCheckedInstanceOf(cls, ExceptionHandler.class);
            LOGGER.debug("AsyncLogger.ExceptionHandler={}", result);
            return result;
        } catch (final Exception ignored) {
            LOGGER.debug("AsyncLogger.ExceptionHandler not set: error creating " + cls + ": ", ignored);
            return null;
View Full Code Here

Examples of com.lmax.disruptor.ExceptionHandler

        if (cls == null) {
            LOGGER.debug("No AsyncLogger.ExceptionHandler specified");
            return null;
        }
        try {
            final ExceptionHandler result = Loader.newCheckedInstanceOf(cls, ExceptionHandler.class);
            LOGGER.debug("AsyncLogger.ExceptionHandler={}", result);
            return result;
        } catch (final Exception ignored) {
            LOGGER.debug("AsyncLogger.ExceptionHandler not set: error creating " + cls + ": ", ignored);
            return null;
View Full Code Here

Examples of com.lmax.disruptor.ExceptionHandler

        initThreadLocalForExecutorThread();
        disruptor = new Disruptor<Log4jEventWrapper>(FACTORY, ringBufferSize,
                executor, ProducerType.MULTI, waitStrategy);
        final EventHandler<Log4jEventWrapper>[] handlers = new Log4jEventWrapperHandler[] {//
        new Log4jEventWrapperHandler() };
        final ExceptionHandler errorHandler = getExceptionHandler();
        disruptor.handleExceptionsWith(errorHandler);
        disruptor.handleEventsWith(handlers);

        LOGGER.debug(
                "Starting AsyncLoggerConfig disruptor with ringbuffer size={}, waitStrategy={}, exceptionHandler={}...",
View Full Code Here

Examples of com.lmax.disruptor.ExceptionHandler

        }
        try {
            @SuppressWarnings("unchecked")
            final Class<? extends ExceptionHandler> klass = (Class<? extends ExceptionHandler>) Class
                    .forName(cls);
            final ExceptionHandler result = klass.newInstance();
            return result;
        } catch (final Exception ignored) {
            LOGGER.debug(
                    "AsyncLoggerConfig.ExceptionHandler not set: error creating "
                            + cls + ": ", ignored);
View Full Code Here

Examples of com.packtpub.java7.concurrency.chapter1.recipe8.handler.ExceptionHandler

    // Creates the Task
    Task task=new Task();
    // Creates the Thread
    Thread thread=new Thread(task);
    // Sets de uncaugh exceptio handler
    thread.setUncaughtExceptionHandler(new ExceptionHandler());
    // Starts the Thread
    thread.start();
   
    try {
      thread.join();
View Full Code Here

Examples of com.strobel.assembler.ir.ExceptionHandler

            }
            else {
                handlerLastInstruction = new Instruction(handlerEnd, OpCode.NOP);
            }

            final ExceptionHandler handler;

            if (catchType == null) {
                handler = ExceptionHandler.createFinally(
                    new ExceptionBlock(firstInstruction, lastInstruction),
                    new ExceptionBlock(handlerFirstInstruction, handlerLastInstruction)
View Full Code Here

Examples of com.sun.enterprise.ee.admin.ExceptionHandler

   
    //The exception handler is used to parse and log exceptions
    protected static ExceptionHandler getExceptionHandler()
    {
        if (_handler == null) {
            _handler = new ExceptionHandler(getLogger());
        }
        return _handler;
    }
View Full Code Here

Examples of cookxml.core.interfaces.ExceptionHandler

   * @return  the current ExceptionHandler.
   * @since CookXml 2.0
   */
  public ExceptionHandler getExceptionHandler ()
  {
    ExceptionHandler handler = m_exceptionHandler;
    if (handler == null)
      return getDefaultExceptionHandler ();
    return handler;
  }
View Full Code Here

Examples of de.odysseus.calyxo.control.ExceptionHandler

    if (config.getClassName() != null) {
      clazz = context.getClassLoader().loadClass(config.getClassName());
    } else {
      clazz = SimpleExceptionHandler.class;
    }
    ExceptionHandler handler = (ExceptionHandler)clazz.newInstance();
    handler.init(config, context);
    handlers.put(config.getId(), handler);
  }
View Full Code Here

Examples of io.undertow.server.handlers.ExceptionHandler

     * Returns a handler that maps exceptions to additional handlers
     * @param next The next handler
     * @return The exception handler
     */
    public static ExceptionHandler exceptionHandler(final HttpHandler next) {
        return new ExceptionHandler(next);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.