NAME
ACE_Recycling_Strategy - Defines the interface (and default implementation) for specifying a recycling strategy for a SVC_HANDLER.
SYNOPSIS
#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);
};
DESCRIPTION
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.
AUTHOR
Doug Schmidt
LIBRARY
ace