ACE_Recycling_Strategy(3)

ACE_Recycling_Strategy3

Defines the interface (and default implementation) for specifying a recycling strategy for a svc_handler.

Usage

#include <ace/ACE_Strategies_T.h>
template<class SVC_HANDLER>
class ACE_Recycling_Strategy
{
  public:
    virtual ~ACE_Recycling_Strategy (void);
    virtual int assign_recycler (
        SVC_HANDLER *svc_handler,
        ACE_Connection_Recycling_Strategy *recycler,
        const void *recycling_act
        );
    virtual int prepare_for_recycling (SVC_HANDLER *svc_handler);
};

Overview

Acts as a consular to the Svc_Handler, preparing it for the tough times ahead when the Svc_Handler will be recycled.

Public members

virtual ~ACE_Recycling_Strategy (void);

Virtual Destructor

virtual int assign_recycler (
    SVC_HANDLER *svc_handler,
    ACE_Connection_Recycling_Strategy *recycler,
    const void *recycling_act
    );

Tell the Svc_Handler something about the recycler, so that it can reach the recycler when necessary.

virtual int prepare_for_recycling (SVC_HANDLER *svc_handler);

This allows us to prepare the svc_handler for recycling.

Library

ace

Author

Doug Schmidt

From libace-doc 5.0.7-4 in Debian 2.2 (Potato). Parsed by carta from the page's man source.