## NAME

ACE_Method_Request - Reifies a method into a request. Subclasses provide the necessary state and behavior.

## SYNOPSIS

    #include <ace/Method_Request.h>

    class ACE_Method_Request
    {
      public:
        ACE_Method_Request (u_long priority = 0);
        virtual ~ACE_Method_Request (void);
        u_long priority (void);
        void priority (u_long);
        virtual int call (void) = 0;
      protected:
        u_long priority_;
    };

## DESCRIPTION

A `Method_Request` is inserted in the `Activation_Queue`, where it is subsequently removed by a `Scheduler`, which invokes the `call` method.

## Initialization and termination methods.

    ACE_Method_Request (u_long priority = 0);

Constructor.

    virtual ~ACE_Method_Request (void);

Destructor.

## Accessors.

    u_long priority (void);

Get priority.

    void priority (u_long);

Set priority.

## Invocation method (must be overridden by subclasses).

    virtual int call (void) = 0;

Invoked when the `Method_Request` is scheduled to run.

## AUTHOR

Andres Kruse `Andres.Kruse@cern.ch` and Douglas C. Schmidt `schmidt@cs.wustl.edu`

## LIBRARY

ace