## NAME

ACE_Connection_Recycling_Strategy - Defines the interface for a connection recycler.

## SYNOPSIS

    #include <ace/Strategies.h>

    class ACE_Connection_Recycling_Strategy
    {
      public:
        virtual ~ACE_Connection_Recycling_Strategy (void);
        virtual int purge (const void *recycling_act) = 0;
        virtual int cache (const void *recycling_act) = 0;
        virtual int recycle_state (
            const void *recycling_act,
            ACE_Recyclable_State new_state
            ) = 0;
        virtual ACE_Recyclable_State recycle_state (
            const void *recycling_act
            ) const = 0;
        virtual int mark_as_closed (const void *recycling_act) = 0;
        virtual int cleanup_hint (const void *recycling_act) = 0;
      protected:
        ACE_Connection_Recycling_Strategy (void);
    };

## PUBLIC MEMBERS

    virtual ~ACE_Connection_Recycling_Strategy (void);

Virtual Destructor

    virtual int purge (const void *recycling_act) = 0;

Remove from cache.

    virtual int cache (const void *recycling_act) = 0;

Add to cache.

    virtual int recycle_state (
        const void *recycling_act,
        ACE_Recyclable_State new_state
        ) = 0;

    virtual ACE_Recyclable_State recycle_state (
        const void *recycling_act
        ) const = 0;

Get/Set `recycle_state`.

    virtual int mark_as_closed (const void *recycling_act) = 0;

Mark as closed.

    virtual int cleanup_hint (const void *recycling_act) = 0;

Cleanup as hint.

## PROTECTED MEMBERS

    ACE_Connection_Recycling_Strategy (void);

Default ctor.

## AUTHOR

Doug Schmidt

## LIBRARY

ace