Package org.apache.geronimo.concurrent

Examples of org.apache.geronimo.concurrent.ManagedTaskListenerSupport


        if (callable == null || unit == null) {
            throw new NullPointerException();
        }
        if (delay < 0) delay = 0;
        Date triggerTime = new Date(System.currentTimeMillis() + unit.toMillis(delay));
        ManagedTaskListenerSupport listenerSupport = getManagedTaskListenerSupport(listener);
        ManagedContext managedContext = getManagedContext();
        ScheduledFutureTask<V> t = new ScheduledFutureTask<V>(callable,
                                                              managedContext,
                                                              listenerSupport,
                                                              triggerTime);
View Full Code Here


                                           Trigger trigger,
                                           ManagedTaskListener listener) {
        if (callable == null || trigger == null) {
            throw new NullPointerException();
        }
        ManagedTaskListenerSupport listenerSupport = getManagedTaskListenerSupport(listener);
        ManagedContext managedContext = getManagedContext();
        ScheduledFutureTask<V> t = new ScheduledFutureTask<V>(callable,
                                                              managedContext,
                                                              listenerSupport,
                                                              trigger);
View Full Code Here

TOP

Related Classes of org.apache.geronimo.concurrent.ManagedTaskListenerSupport

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.