Examples of ThreadRenamingRunnable


Examples of org.jboss.netty.util.ThreadRenamingRunnable

        close(ch, succeededFuture(ch));
    }

    @Override
    protected ThreadRenamingRunnable newThreadRenamingRunnable(int id, ThreadNameDeterminer determiner) {
        return new ThreadRenamingRunnable(this, "New I/O worker #" + id, determiner);
    }
View Full Code Here

Examples of org.jboss.netty.util.ThreadRenamingRunnable

            fireChannelConnected(channel, channel.getRemoteAddress());

            // Start the business.
            DeadLockProofWorker.start(
                    workerExecutor,
                    new ThreadRenamingRunnable(
                            new OioWorker(channel),
                            "Old I/O client worker (" + channel + ')',
                            determiner));
            workerStarted = true;
        } catch (Throwable t) {
View Full Code Here

Examples of org.jboss.netty.util.ThreadRenamingRunnable

            fireChannelBound(channel, channel.getLocalAddress());

            // Start the business.
            DeadLockProofWorker.start(
                    workerExecutor,
                    new ThreadRenamingRunnable(
                            new OioDatagramWorker(channel),
                            "Old I/O datagram worker (" + channel + ')',
                            determiner));
            workerStarted = true;
        } catch (Throwable t) {
View Full Code Here

Examples of org.jboss.netty.util.ThreadRenamingRunnable

            String threadName = "Old I/O datagram worker (" + channel + ')';
            if (!bound) {
                // Start the business.
                DeadLockProofWorker.start(
                        workerExecutor,
                        new ThreadRenamingRunnable(
                                new OioDatagramWorker(channel), threadName, determiner));
            } else {
                // Worker started by bind() - just rename.
                Thread workerThread = channel.workerThread;
                if (workerThread != null) {
View Full Code Here

Examples of org.jboss.netty.util.ThreadRenamingRunnable

        this.timer = timer;
    }

    @Override
    protected ThreadRenamingRunnable newThreadRenamingRunnable(int id, ThreadNameDeterminer determiner) {
        return new ThreadRenamingRunnable(this, "New I/O boss #" + id, determiner);
    }
View Full Code Here

Examples of org.jboss.netty.util.ThreadRenamingRunnable

            Executor bossExecutor =
                ((OioServerSocketChannelFactory) channel.getFactory()).bossExecutor;
            DeadLockProofWorker.start(
                    bossExecutor,
                    new ThreadRenamingRunnable(
                            new Boss(channel),
                            "Old I/O server boss (" + channel + ')',
                            determiner));
            bossStarted = true;
        } catch (Throwable t) {
View Full Code Here

Examples of org.jboss.netty.util.ThreadRenamingRunnable

                                        pipeline,
                                        OioServerSocketPipelineSink.this,
                                        acceptedSocket);
                            DeadLockProofWorker.start(
                                    workerExecutor,
                                    new ThreadRenamingRunnable(
                                            new OioWorker(acceptedChannel),
                                            "Old I/O server worker (parentId: " +
                                            channel.getId() + ", " + channel + ')',
                                            determiner));
                        } catch (Exception e) {
View Full Code Here

Examples of org.jboss.netty.util.internal.ThreadRenamingRunnable

            Executor bossExecutor =
                ((NioServerSocketChannelFactory) channel.getFactory()).bossExecutor;
            bossExecutor.execute(
                    new IoWorkerRunnable(
                            new ThreadRenamingRunnable(
                                    new Boss(channel),
                                    "New I/O server boss #" + id +
                                    " (channelId: " + channel.getId() +
                                    ", " + channel.getLocalAddress() + ')')));
            bossStarted = true;
View Full Code Here

Examples of org.jboss.netty.util.internal.ThreadRenamingRunnable

                boolean success = false;
                try {
                    executor.execute(
                            new IoWorkerRunnable(
                                    new ThreadRenamingRunnable(this, threadName)));
                    success = true;
                } finally {
                    if (!success) {
                        // Release the Selector if the execution fails.
                        try {
View Full Code Here

Examples of org.jboss.netty.util.internal.ThreadRenamingRunnable

                    tickDuration +  ' ' + unit);
        }

        roundDuration = tickDuration * wheel.length;

        workerThread = threadFactory.newThread(new ThreadRenamingRunnable(
                        worker, "Hashed wheel timer #" + id.incrementAndGet()));

        // Misuse check
        int activeInstances = HashedWheelTimer.activeInstances.incrementAndGet();
        if (activeInstances >= MISUSE_WARNING_THRESHOLD &&
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.