22 #ifndef HAZELCAST_ILock
23 #define HAZELCAST_ILock
25 #include "hazelcast/client/spi/ClientContext.h"
26 #include "hazelcast/client/spi/InvocationService.h"
27 #include "hazelcast/client/proxy/ProxyImpl.h"
28 #include "hazelcast/client/serialization/pimpl/Data.h"
31 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
33 #pragma warning(disable: 4251) //for dll export
43 class HAZELCAST_API
ILock :
public proxy::ProxyImpl {
60 void lock(
long leaseTimeInMillis);
83 bool isLockedByCurrentThread();
98 long getRemainingLeaseTime();
114 bool tryLock(
long timeInMillis);
118 ILock(
const std::string& instanceName, spi::ClientContext *context);
120 serialization::pimpl::Data key;
127 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
131 #endif //HAZELCAST_ILock
Re-entrant Lock, Distributed client implementation of Lock.
Definition: ILock.h:43
Hazelcast Client enables you to do all Hazelcast operations without being a member of the cluster...
Definition: HazelcastClient.h:412