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:
Inheritance graph
[legend]

Public Member Functions

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

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 (  )  [inline, virtual]

Member Function Documentation

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

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

Generated on 1 Dec 2014 for activemq-cpp-3.8.2 by  doxygen 1.6.1