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>

List of all members.

Public Types

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

Public Member Functions

virtual ~ACE_Recycling_Strategy (void)
 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.

Definition at line 49 of file Strategies_T.h.


Member Typedef Documentation

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

Definition at line 54 of file Strategies_T.h.

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

Definition at line 55 of file Strategies_T.h.

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

Definition at line 56 of file Strategies_T.h.


Constructor & Destructor Documentation

template<class SVC_HANDLER>
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_Recycling_Strategy< SVC_HANDLER >::~ACE_Recycling_Strategy void   )  [virtual]
 

Virtual Destructor.

Definition at line 31 of file Strategies_T.cpp.

00032 {
00033 }


Member Function Documentation

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.

Definition at line 36 of file Strategies_T.cpp.

00039 {
00040   svc_handler->recycler (recycler, recycling_act);
00041   return 0;
00042 }

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.

Definition at line 45 of file Strategies_T.cpp.

00046 {
00047   return svc_handler->recycle ();
00048 }


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:27:52 2006 for ACE by doxygen 1.3.6