Package org.apache.openejb.concurrencyutilities.ee.impl

Examples of org.apache.openejb.concurrencyutilities.ee.impl.ManagedScheduledExecutorServiceImpl


public class ManagedScheduledExecutorServiceImplFactory {
    private int core = 5;
    private String threadFactory = ManagedThreadFactoryImpl.class.getName();

    public ManagedScheduledExecutorServiceImpl create() {
        return new ManagedScheduledExecutorServiceImpl(createScheduledExecutorService());
    }
View Full Code Here


    @Test
    public void createServiceTest() {
        final ManagedScheduledExecutorServiceImplFactory factory = new ManagedScheduledExecutorServiceImplFactory();
        factory.setThreadFactory(MyThreadFactory.class.getName());
        final ManagedScheduledExecutorServiceImpl executorService = factory.create();
        final ScheduledThreadPoolExecutor poolExecutor = (ScheduledThreadPoolExecutor) executorService.getDelegate();
        Assert.assertEquals(poolExecutor.getThreadFactory().getClass(), ManagedThreadFactoryImpl.class);
    }
View Full Code Here

    private int core = 5;
    private String threadFactory = ManagedThreadFactoryImpl.class.getName();
    private Duration waitAtShutdown = new Duration("30 seconds");

    public ManagedScheduledExecutorServiceImpl create() {
        return new ManagedScheduledExecutorServiceImpl(createScheduledExecutorService(), waitAtShutdown);
    }
View Full Code Here

TOP

Related Classes of org.apache.openejb.concurrencyutilities.ee.impl.ManagedScheduledExecutorServiceImpl

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.