You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
clang format apply
This commit is contained in:
@ -22,35 +22,31 @@
|
||||
|
||||
namespace messageqcpp
|
||||
{
|
||||
|
||||
|
||||
struct ClientObject
|
||||
{
|
||||
MessageQueueClient* client;
|
||||
uint64_t lastUsed;
|
||||
bool inUse;
|
||||
MessageQueueClient* client;
|
||||
uint64_t lastUsed;
|
||||
bool inUse;
|
||||
|
||||
ClientObject() :
|
||||
client(NULL),
|
||||
lastUsed(0),
|
||||
inUse(false)
|
||||
{}
|
||||
ClientObject() : client(NULL), lastUsed(0), inUse(false)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
class MessageQueueClientPool
|
||||
{
|
||||
public:
|
||||
static MessageQueueClient* getInstance(const std::string& module);
|
||||
static MessageQueueClient *getInstance(const std::string &dnOrIp, uint64_t port);
|
||||
static void releaseInstance(MessageQueueClient* client);
|
||||
static void deleteInstance(MessageQueueClient* client);
|
||||
static MessageQueueClient* findInPool(const std::string& search);
|
||||
public:
|
||||
static MessageQueueClient* getInstance(const std::string& module);
|
||||
static MessageQueueClient* getInstance(const std::string& dnOrIp, uint64_t port);
|
||||
static void releaseInstance(MessageQueueClient* client);
|
||||
static void deleteInstance(MessageQueueClient* client);
|
||||
static MessageQueueClient* findInPool(const std::string& search);
|
||||
|
||||
private:
|
||||
MessageQueueClientPool() { };
|
||||
~MessageQueueClientPool() { };
|
||||
private:
|
||||
MessageQueueClientPool(){};
|
||||
~MessageQueueClientPool(){};
|
||||
|
||||
static std::multimap<std::string, ClientObject*> clientMap;
|
||||
static std::multimap<std::string, ClientObject*> clientMap;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace messageqcpp
|
||||
|
Reference in New Issue
Block a user