Package org.apache.openejb.threads.impl

Examples of org.apache.openejb.threads.impl.ManagedThreadFactoryImpl$ManagedThread


public class ManagedThreadFactoryImplFactory {
    private String prefix = "openejb-managed-thread-";

    public ManagedThreadFactory create() {
        return new ManagedThreadFactoryImpl(prefix);
    }
View Full Code Here


        ManagedThreadFactory managedThreadFactory;
        try {
            managedThreadFactory = ManagedThreadFactory.class.cast(Thread.currentThread().getContextClassLoader().loadClass(threadFactory).newInstance());
        } catch (final Exception e) {
            Logger.getInstance(LogCategory.OPENEJB, ManagedScheduledExecutorServiceImplFactory.class).warning("Unable to create configured thread factory: " + threadFactory, e);
            managedThreadFactory = new ManagedThreadFactoryImpl();
        }

        return new ScheduledThreadPoolExecutor(core, managedThreadFactory, CURejectHandler.INSTANCE);
    }
View Full Code Here

        ManagedThreadFactory managedThreadFactory;
        try {
            managedThreadFactory = ManagedThreadFactory.class.cast(Thread.currentThread().getContextClassLoader().loadClass(threadFactory).newInstance());
        } catch (final Exception e) {
            Logger.getInstance(LogCategory.OPENEJB, ManagedExecutorServiceImplFactory.class).warning("Can't create configured thread factory: " + threadFactory, e);
            managedThreadFactory = new ManagedThreadFactoryImpl();
        }

        return new ThreadPoolExecutor(core, max, keepAlive.getTime(), keepAlive.getUnit(), blockingQueue, managedThreadFactory, CURejectHandler.INSTANCE);
    }
View Full Code Here

TOP

Related Classes of org.apache.openejb.threads.impl.ManagedThreadFactoryImpl$ManagedThread

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.