---
name: "ACE_Recycling_Strategy"
section: "3"
platform: "linux"
package: "libace-doc"
version: "5.0.7-4"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/ACE_Recycling_Strategy"
---

# ACE\_Recycling\_Strategy(3)

Defines the interface (and default implementation) for specifying a recycling strategy for a SVC\_HANDLER.

## 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
