ACE 8.0.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
ACE_Recycling_Strategy< SVC_HANDLER > Class Template Reference

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

#include <Strategies_T.h>

Public Types

typedef SVC_HANDLER::addr_type addr_type
 
typedef SVC_HANDLER handler_type
 
typedef SVC_HANDLER::stream_type stream_type
 

Public Member Functions

virtual ~ACE_Recycling_Strategy ()
 Virtual Destructor.
 
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)
 This allows us to prepare the svc_handler for recycling.
 

Detailed Description

template<class SVC_HANDLER>
class ACE_Recycling_Strategy< SVC_HANDLER >

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

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

Member Typedef Documentation

◆ addr_type

template<class SVC_HANDLER >
typedef SVC_HANDLER::addr_type ACE_Recycling_Strategy< SVC_HANDLER >::addr_type

◆ handler_type

◆ stream_type

template<class SVC_HANDLER >
typedef SVC_HANDLER::stream_type ACE_Recycling_Strategy< SVC_HANDLER >::stream_type

Constructor & Destructor Documentation

◆ ~ACE_Recycling_Strategy()

Virtual Destructor.

Member Function Documentation

◆ assign_recycler()

template<class SVC_HANDLER >
int ACE_Recycling_Strategy< SVC_HANDLER >::assign_recycler ( SVC_HANDLER * svc_handler,
ACE_Connection_Recycling_Strategy * recycler,
const void * recycling_act )
virtual

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

◆ prepare_for_recycling()

template<class SVC_HANDLER >
int ACE_Recycling_Strategy< SVC_HANDLER >::prepare_for_recycling ( SVC_HANDLER * svc_handler)
virtual

This allows us to prepare the svc_handler for recycling.


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