Package org.jboss.as.clustering.concurrent

Examples of org.jboss.as.clustering.concurrent.ManagedScheduledExecutorService


    public ManagedScheduledExecutorTest() {
        this(mock(ScheduledExecutorService.class));
    }

    private ManagedScheduledExecutorTest(ScheduledExecutorService executor) {
        this(executor, new ManagedScheduledExecutorService(executor));
    }
View Full Code Here


        this.executor = executor;
    }

    @Override
    public ScheduledExecutorService getScheduledExecutor(Properties p) {
        return new ManagedScheduledExecutorService(this.executor);
    }
View Full Code Here

    public ScheduledExecutorService getScheduledExecutor(Properties properties) {
        ScheduledExecutorService executor = (ScheduledExecutorService) properties.get(EXECUTOR);
        if (executor == null) {
            throw MESSAGES.invalidExecutorProperty(EXECUTOR, properties);
        }
        return new ManagedScheduledExecutorService(executor);
    }
View Full Code Here

            }
        }
        ScheduledExecutorService timerExecutor = transportConfig.getTimerExecutor();
        if (timerExecutor != null) {
            if (!(transport.getTimer() instanceof TimerSchedulerAdapter)) {
                this.setValue(transport, "timer", new TimerSchedulerAdapter(new ManagedScheduledExecutorService(timerExecutor)));
            }
        }
    }
View Full Code Here

            }
        }
        ScheduledExecutorService timerExecutor = transportConfig.getTimerExecutor();
        if (timerExecutor != null) {
            if (!(transport.getTimer() instanceof TimerSchedulerAdapter)) {
                this.setValue(transport, "timer", new TimerSchedulerAdapter(new ManagedScheduledExecutorService(timerExecutor)));
            }
        }
    }
View Full Code Here

    public ScheduledExecutorService createExecutor(ThreadFactory factory) {
        return this.createExecutor();
    }

    private ScheduledExecutorService createExecutor() {
        return new ManagedScheduledExecutorService(this.executor);
    }
View Full Code Here

            }
        }
        ScheduledExecutorService timerExecutor = transportConfig.getTimerExecutor();
        if (timerExecutor != null) {
            if (!(transport.getTimer() instanceof TimerSchedulerAdapter)) {
                setValue(transport, "timer", new TimerSchedulerAdapter(new ManagedScheduledExecutorService(timerExecutor)));
            }
        }
    }
View Full Code Here

    public ManagedScheduledExecutorTest() {
        this(mock(ScheduledExecutorService.class));
    }

    private ManagedScheduledExecutorTest(ScheduledExecutorService executor) {
        this(executor, new ManagedScheduledExecutorService(executor));
    }
View Full Code Here

        this.executor = executor;
    }

    @Override
    public ScheduledExecutorService getScheduledExecutor(Properties p) {
        return new ManagedScheduledExecutorService(this.executor);
    }
View Full Code Here

            }
        }
        ScheduledExecutorService timerExecutor = transportConfig.getTimerExecutor();
        if (timerExecutor != null) {
            if (!(transport.getTimer() instanceof TimerSchedulerAdapter)) {
                this.setValue(transport, "timer", new TimerSchedulerAdapter(new ManagedScheduledExecutorService(timerExecutor)));
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.jboss.as.clustering.concurrent.ManagedScheduledExecutorService

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.