Examples of AsyncHandler


Examples of org.jboss.logmanager.handlers.AsyncHandler

        return value;
    }

    public synchronized void setOverflowAction(final OverflowAction overflowAction) {
        this.overflowAction = overflowAction;
        final AsyncHandler handler = value;
        if (handler != null) {
            handler.setOverflowAction(overflowAction);
        }
    }
View Full Code Here

Examples of org.jboss.logmanager.handlers.AsyncHandler

        this.queueLength = queueLength;
    }

    public synchronized void setLevel(final Level level) {
        this.level = level;
        final AsyncHandler handler = value;
        if (handler != null) {
            handler.setLevel(level);
        }
    }
View Full Code Here

Examples of org.jboss.logmanager.handlers.AsyncHandler

    }

    @Override
    public synchronized void setEncoding(final String encoding) throws UnsupportedEncodingException {
        this.encoding = encoding;
        final AsyncHandler handler = value;
        if (handler != null) {
            handler.setEncoding(encoding);
        }
    }
View Full Code Here

Examples of org.jboss.logmanager.handlers.AsyncHandler

    }

    @Override
    public synchronized void setFormatterSpec(final AbstractFormatterSpec formatterSpec) {
        this.formatterSpec = formatterSpec;
        final AsyncHandler handler = value;
        if (handler != null) {
            formatterSpec.apply(handler);
        }
    }
View Full Code Here

Examples of org.jboss.logmanager.handlers.AsyncHandler

    }

    @Override
    public synchronized void setFilter(final Filter filter) {
        this.filter = filter;
        final AsyncHandler handler = value;
        if (handler != null) {
            handler.setFilter(filter);
        }
    }
View Full Code Here

Examples of org.jboss.logmanager.handlers.AsyncHandler

        }
    }

    public synchronized void addHandlers(final List<InjectedValue<Handler>> list) {
        subhandlers.addAll(list);
        final AsyncHandler handler = value;
        if (handler != null) {
            for (InjectedValue<Handler> injectedHandler : list) {
                handler.addHandler(injectedHandler.getValue());
            }
        }
    }
View Full Code Here

Examples of org.jboss.logmanager.handlers.AsyncHandler

        }
    }

    public synchronized void addHandler(final InjectedValue<Handler> injectedHandler) {
        subhandlers.add(injectedHandler);
        final AsyncHandler handler = value;
        if (handler != null) {
            handler.addHandler(injectedHandler.getValue());
        }
    }
View Full Code Here

Examples of org.jboss.logmanager.handlers.AsyncHandler

        }
        if (valueToRemove != null) {

            subhandlers.remove(valueToRemove);

            final AsyncHandler handler = value;
            if (handler != null) {
                handler.removeHandler(valueToRemove.getValue());
            }
        }
    }
View Full Code Here

Examples of org.jboss.logmanager.handlers.AsyncHandler

    private AsyncHandler value;

    private Level level;

    public synchronized void start(final StartContext context) throws StartException {
        final AsyncHandler handler = new AsyncHandler(queueLength);
        value = handler;
        final OverflowAction action = overflowAction;
        setAction(handler, action);
        Handler[] handlers = new Handler[subhandlers.size()];
        for (int i = 0, subhandlersSize = subhandlers.size(); i < subhandlersSize; i++) {
            handlers[i] = subhandlers.get(i).getValue();
        }
        handler.setHandlers(handlers);
        if (level != null) handler.setLevel(level);
    }
View Full Code Here

Examples of org.jboss.logmanager.handlers.AsyncHandler

            }
        }
    }

    public synchronized void stop(final StopContext context) {
        final AsyncHandler handler = value;
        handler.close();
        handler.setLevel(Level.OFF);
        handler.clearHandlers();
        value = null;
    }
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.