Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Recycling_Strategy 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 Methods

virtual ~ACE_Recycling_Strategy (void)
 Virtual Destructor. More...

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. More...

virtual int prepare_for_recycling (SVC_HANDLER *svc_handler)
 This allows us to prepare the svc_handler for recycling. More...


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 46 of file Strategies_T.h.


Member Typedef Documentation

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

Definition at line 51 of file Strategies_T.h.

template<class SVC_HANDLER>
typedef SVC_HANDLER ACE_Recycling_Strategy::handler_type
 

Definition at line 52 of file Strategies_T.h.

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

Definition at line 53 of file Strategies_T.h.


Constructor & Destructor Documentation

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

Virtual Destructor.

Definition at line 5 of file Strategies_T.i.

00006 {
00007 }


Member Function Documentation

template<class SVC_HANDLER>
ASYS_INLINE 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 10 of file Strategies_T.i.

00013 {
00014   svc_handler->recycler (recycler, recycling_act);
00015   return 0;
00016 }

template<class SVC_HANDLER>
ASYS_INLINE 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 19 of file Strategies_T.i.

00020 {
00021   return svc_handler->recycle ();
00022 }


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:55:00 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002