Package groovyx.gpars.util

Examples of groovyx.gpars.util.AsyncMessagingCore


    private final AsyncMessagingCore core;

    protected volatile Thread currentThread;

    protected AgentCore() {
        this.core = new AsyncMessagingCore(Actors.defaultActorPGroup.getThreadPool()) {
            @Override
            protected void registerError(final Throwable e) {
                AgentCore.this.registerError(e);
            }
View Full Code Here


     * @param code Code to run on each message
     */
    protected final void initialize(final Closure code) {

        //noinspection OverlyComplexAnonymousInnerClass
        this.core = new AsyncMessagingCore(parallelGroup.getThreadPool()) {
            @Override
            protected void registerError(final Throwable e) {
                if (e instanceof InterruptedException) {
                    handleInterrupt((InterruptedException) e);
                } else {
View Full Code Here

TOP

Related Classes of groovyx.gpars.util.AsyncMessagingCore

Copyright © 2018 www.massapicom. 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.