#include <coherence/net/AbstractPriorityTask.hpp>
Inherited by PriorityAggregator, PriorityFilter, and PriorityProcessor.
It implements all AbstractPriorityTask interface methods and is intended to be extended for concrete uses.
Public Types | |
typedef spec::Handle | Handle |
AbstractPriorityTask Handle definition. | |
typedef spec::View | View |
AbstractPriorityTask View definition. | |
typedef spec::Holder | Holder |
AbstractPriorityTask Holder definition. | |
Public Member Functions | |
virtual int32_t | getSchedulingPriority () const |
virtual int64_t | getExecutionTimeoutMillis () const |
virtual int64_t | getRequestTimeoutMillis () const |
virtual void | runCanceled (bool fAbandoned) |
| |
virtual void | readExternal (PofReader::Handle hIn) |
virtual void | writeExternal (PofWriter::Handle hOut) const |
virtual void | setSchedulingPriority (int32_t iPriority) |
Specify this task's scheduling priority. | |
virtual void | setExecutionTimeoutMillis (int64_t lTimeout) |
Specify the maximum amount of time this task is allowed to run before the corresponding service will attempt to stop it. | |
virtual void | setRequestTimeoutMillis (int64_t lTimeout) |
Specify the maximum amount of time a calling thread is willing to wait for a result of the request execution. |
virtual void runCanceled | ( | bool | fAbandoned | ) | [virtual] |
This implementation is a no-op.
virtual void setSchedulingPriority | ( | int32_t | iPriority | ) | [virtual] |
Specify this task's scheduling priority.
Valid values are one of the SCHEDULE_* constants.
iPriority | this task's scheduling priority |
virtual void setExecutionTimeoutMillis | ( | int64_t | lTimeout | ) | [virtual] |
Specify the maximum amount of time this task is allowed to run before the corresponding service will attempt to stop it.
lTimeout | the task timeout value in milliseconds |
virtual void setRequestTimeoutMillis | ( | int64_t | lTimeout | ) | [virtual] |
Specify the maximum amount of time a calling thread is willing to wait for a result of the request execution.
lTimeout | the request timeout value in milliseconds |