blob: db2d5465d44a93bca437cc6b7703b65fd7632a58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
// **********************************************************************
//
// Copyright (c) 2001
// ZeroC, Inc.
// Huntsville, AL, USA
//
// All Rights Reserved
//
// **********************************************************************
#ifndef BLOBJECT_H
#define BLOBJECT_H
#include <Ice/Ice.h>
#include <Glacier/Missive.h>
namespace Glacier
{
class Blobject : public Ice::Blobject
{
public:
Blobject(const Ice::CommunicatorPtr&);
virtual ~Blobject();
virtual bool reverse() = 0;
void destroy();
bool invoke(Ice::ObjectPrx&, const std::vector<Ice::Byte>&, std::vector<Ice::Byte>&, const Ice::Current&);
MissiveQueuePtr modifyProxy(Ice::ObjectPrx&, const Ice::Current&);
protected:
Ice::CommunicatorPtr _communicator;
Ice::LoggerPtr _logger;
int _traceLevel;
bool _forwardContext;
IceUtil::Time _batchSleepTime;
private:
MissiveQueuePtr getMissiveQueue();
MissiveQueuePtr _missiveQueue;
IceUtil::ThreadControl _missiveQueueControl;
IceUtil::Mutex _missiveQueueMutex;
};
}
#endif
|