Package org.apache.felix.ipojo.extender.internal.queue

Examples of org.apache.felix.ipojo.extender.internal.queue.ExecutorQueueService


            threadFactory = new NamingThreadFactory(threadFactory);
            threadFactory = new PrefixedThreadFactory(threadFactory, "[iPOJO] ");

            // Create the queue services
            SynchronousQueueService sync = new SynchronousQueueService(context);
            ExecutorQueueService async = new ExecutorQueueService(context,
                                                                  Integer.getInteger(ExecutorQueueService.THREADPOOL_SIZE_PROPERTY,
                                                                                     1), // default to 1 if no system property is set
                                                                  threadFactory);
            m_queueService = new PreferenceQueueService(new HeaderPreferenceSelection(), sync, async);

            extensionBundleProcessor = new QueuingActivationProcessor(extensionBundleProcessor, m_queueService);
            componentsProcessor = new QueuingActivationProcessor(componentsProcessor, m_queueService);
            configurationProcessor = new QueuingActivationProcessor(configurationProcessor, m_queueService);

            // If required, add the event proxy to both real services
            if (proxy != null) {
                sync.addQueueListener(proxy);
                async.addQueueListener(proxy);
            }

        }
        m_queueService.start();
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.extender.internal.queue.ExecutorQueueService

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.