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

Examples of org.apache.felix.ipojo.extender.queue.QueueService


    public <T> Future<T> submit(Job<T> callable, Callback<T> callback, String description) {

        Bundle bundle = callable.getBundle();
        Preference preference = m_strategy.select(bundle);

        QueueService selected = m_defaultQueue;
        switch (preference) {
            case ASYNC:
                selected = m_asyncQueue;
                break;
            case SYNC:
                selected = m_syncQueue;
                break;
        }

        return selected.submit(callable, callback, description);
    }
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.extender.queue.QueueService

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.