Package de.fu_berlin.inf.dpp.util

Examples of de.fu_berlin.inf.dpp.util.NamedThreadFactory


    }

    private void connect(Callable<Socket> service) {

        ExecutorService thread = Executors
            .newSingleThreadExecutor(new NamedThreadFactory("Jingle-Connect-"
                + this.getJingleSession().getResponder() + "-"));

        try {
            ExecutorCompletionService<Socket> completionService = new ExecutorCompletionService<Socket>(
                thread);
View Full Code Here


    @Override
    public void prepareXMPPConnection(Connection connection,
        IBytestreamConnectionListener listener) {
        super.prepareXMPPConnection(connection, listener);
        executorService = Executors.newFixedThreadPool(
            NUMBER_OF_RESPONSE_THREADS, new NamedThreadFactory(
                "SOCKS5_Establish_response_connection"));
    }
View Full Code Here

        Utils.runSafeAsync("StreamServiceManagers-senderThread", log, sender);
        receiver = new PacketReceiver();
        Utils.runSafeAsync("StreamServiceManagers-receiverThread", log,
            receiver);
        stopSessionExecutor = Executors.newScheduledThreadPool(5,
            new NamedThreadFactory("StreamSessionStopper-"));

        sessionDispatcher = Executors
            .newSingleThreadExecutor(new NamedThreadFactory(
                "StreamSessionDispatcher-"));

        negotiatesToUser = Executors
            .newSingleThreadExecutor(new NamedThreadFactory(
                "StreamSessionNegotiationUser-"));

        negotiations = Executors.newFixedThreadPool(5, new NamedThreadFactory(
            "StreamSessionNegotiation-"));
    }
View Full Code Here

TOP

Related Classes of de.fu_berlin.inf.dpp.util.NamedThreadFactory

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.