Package org.apache.geronimo.concurrent

Examples of org.apache.geronimo.concurrent.ManagedTaskListenerSupport.taskSubmitted()


     * This is called by invokeAll/invokeAny/submit functions.    
     */
    protected void executeTask(ManagedFutureTask<?> task) {       
        ManagedTaskListenerSupport listenerSupport = task.getManagedTaskListenerSupport();
        if (listenerSupport != null) {
            listenerSupport.taskSubmitted(task);
        }
        try {
            super.execute(task);
        } catch (RejectedExecutionException exception) {
            if (listenerSupport != null) {
View Full Code Here


   
    protected void preExecute(ManagedFutureTask<?> task) {
        ManagedTaskListenerSupport listenerSupport = task.getManagedTaskListenerSupport();
       
        if (listenerSupport != null) {
            listenerSupport.taskSubmitted(task);
        }
       
        if (isShutdown()) {
            try {
                reject(task);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.