activemq-cpp-3.6.0
decaf::util::concurrent::ThreadPoolExecutor::CallerRunsPolicy Class Reference

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>

Inheritance diagram for decaf::util::concurrent::ThreadPoolExecutor::CallerRunsPolicy:

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.

Detailed Description

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.

Since
1.0

Constructor & Destructor Documentation

decaf::util::concurrent::ThreadPoolExecutor::CallerRunsPolicy::CallerRunsPolicy ( )
inline
virtual decaf::util::concurrent::ThreadPoolExecutor::CallerRunsPolicy::~CallerRunsPolicy ( )
inlinevirtual

Member Function Documentation

virtual void decaf::util::concurrent::ThreadPoolExecutor::CallerRunsPolicy::rejectedExecution ( decaf::lang::Runnable task,
ThreadPoolExecutor *executer  DECAF_UNUSED 
)
inlinevirtual

The documentation for this class was generated from the following file: