Package org.apache.geronimo.concurrent.thread

Examples of org.apache.geronimo.concurrent.thread.ManagedRunnable


   
    public void execute(Runnable task) {
        if (task == null) {
            throw new NullPointerException();
        }
        ManagedRunnable managedRunnable = new ManagedRunnable(task, getManagedContext());
        super.execute(managedRunnable);
    }
View Full Code Here


        if (!isRunning()) {
            throw new IllegalArgumentException(
                "Component that created this thread factory is no longer running");
        }
               
        Runnable managedRunnable = new ManagedRunnable(runnable, this.managedContext, true);
        Thread thread = super.newThread(managedRunnable);
        return thread;
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.concurrent.thread.ManagedRunnable

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.