Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / CSD_ThreadPool / CSD_TP_Collocated_Asynch_Request.h
blob6cfd276f2ea05e55fdb8b59da4e304342a676849
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file CSD_TP_Collocated_Asynch_Request.h
7 * @author Tim Bradley <bradley_t@ociweb.com>
8 */
9 //=============================================================================
11 #ifndef TAO_CSD_TP_COLLOCATED_ASYNCH_REQUEST_H
12 #define TAO_CSD_TP_COLLOCATED_ASYNCH_REQUEST_H
14 #include /**/ "ace/pre.h"
16 #include "tao/CSD_ThreadPool/CSD_TP_Export.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "tao/CSD_ThreadPool/CSD_TP_Corba_Request.h"
24 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
26 namespace TAO
28 namespace CSD
30 class TP_Collocated_Asynch_Request;
31 typedef TAO_Intrusive_Ref_Count_Handle<TP_Collocated_Asynch_Request>
32 TP_Collocated_Asynch_Request_Handle;
34 /**
35 * @class TP_Collocated_Asynch_Request
37 * @brief Represents a "queue-able", collocated, asynchronous,
38 * CORBA request.
40 * This kind request is one-way collocated request with the default
41 * SYNC_SCOPE policy (SYNC_WITH_TRANSPORT) applied. It is cloned
42 * before enqueuing and the "enqueuing" thread never blocks.
44 class TAO_CSD_TP_Export TP_Collocated_Asynch_Request
45 : public TP_Corba_Request
47 public:
48 /// Constructor.
49 TP_Collocated_Asynch_Request
50 (TAO_ServerRequest& server_request,
51 const PortableServer::ObjectId& object_id,
52 PortableServer::POA_ptr poa,
53 const char* operation,
54 PortableServer::Servant servant,
55 TP_Servant_State* servant_state);
57 /// Virtual Destructor.
58 virtual ~TP_Collocated_Asynch_Request();
61 protected:
62 /// Prepare this TP_Collocated_Asynch_Request object to be placed
63 /// into the request queue. This will cause the underlying
64 /// TAO_ServerRequest object to be cloned.
65 virtual void prepare_for_queue_i();
67 /// Dispatch the request to the servant.
68 virtual void dispatch_i();
70 /// Cancel the request.
71 virtual void cancel_i();
76 TAO_END_VERSIONED_NAMESPACE_DECL
78 #if defined (__ACE_INLINE__)
79 # include "tao/CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.inl"
80 #endif /* __ACE_INLINE__ */
82 #include /**/ "ace/post.h"
84 #endif /* TAO_CSD_TP_COLLOCATED_ASYNCH_REQUEST_H */