JBoss Threads 2.0.0.GA-redhat-2

org.jboss.threads
Interface WrappingExecutor

All Superinterfaces:
Executor

public interface WrappingExecutor
extends Executor

An executor which runs a task within the given direct executor.


Method Summary
 void execute(DirectExecutor directExecutor, Runnable task)
          Run the given task within the given wrapper.
 void execute(Runnable task)
          Run the given task directly, without a wrapper.
 

Method Detail

execute

void execute(Runnable task)
             throws RejectedExecutionException
Run the given task directly, without a wrapper.

Specified by:
execute in interface Executor
Parameters:
task - the task to run
Throws:
RejectedExecutionException - if the execution was rejected for some reason

execute

void execute(DirectExecutor directExecutor,
             Runnable task)
             throws RejectedExecutionException
Run the given task within the given wrapper.

Parameters:
directExecutor - the task wrapper
task - the task to run
Throws:
RejectedExecutionException - if the execution was rejected for some reason

JBoss Threads 2.0.0.GA-redhat-2

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.