#include <Cleanup_Strategies_T.h>
Inheritance diagram for ACE_Handler_Cleanup_Strategy:


Public Methods | |
| virtual int | cleanup (CONTAINER &container, KEY *key, VALUE *value) |
| The method which will do the cleanup of the entry in the container. More... | |
The entry to be cleaned up is removed from the container. Here, since we are dealing with svc_handlers specifically, we perform a couple of extra operations. Note: This cleanup strategy should be used in the case when the handler has the caching attributes.
Definition at line 109 of file Cleanup_Strategies_T.h.
|
||||||||||||||||||||
|
The method which will do the cleanup of the entry in the container.
Reimplemented from ACE_Cleanup_Strategy. Definition at line 58 of file Cleanup_Strategies_T.cpp.
00061 {
00062 // Remove the item from cache only if the handler isnt in use.
00063 if ((*value)->active () == 0)
00064 {
00065 (*value)->close ();
00066
00067 if (container.unbind (*key) == -1)
00068 return -1;
00069
00070 }
00071
00072 return 0;
00073 }
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002