activemq-cpp-3.6.0
|
Handler policy for tasks that are rejected upon a call to ThreadPoolExecutor::execute this class will attempt to run the task in the Thread that called the execute method unless the executor is shutdown in which case the task is not run and is destroyed. More...
#include <src/main/decaf/util/concurrent/ThreadPoolExecutor.h>
Public Member Functions | |
CallerRunsPolicy () | |
virtual | ~CallerRunsPolicy () |
virtual void | rejectedExecution (decaf::lang::Runnable *task, ThreadPoolExecutor *executer DECAF_UNUSED) |
Public Member Functions inherited from decaf::util::concurrent::RejectedExecutionHandler | |
RejectedExecutionHandler () | |
virtual | ~RejectedExecutionHandler () |
virtual void | rejectedExecution (decaf::lang::Runnable *r, ThreadPoolExecutor *executer)=0 |
Method that may be invoked by a ThreadPoolExecutor when execute cannot accept a task. |
Handler policy for tasks that are rejected upon a call to ThreadPoolExecutor::execute this class will attempt to run the task in the Thread that called the execute method unless the executor is shutdown in which case the task is not run and is destroyed.
|
inline |
|
inlinevirtual |
|
inlinevirtual |
References decaf::lang::Runnable::run().