16 #ifndef HAZELCAST_CLIENT
17 #define HAZELCAST_CLIENT
19 #include "hazelcast/client/IMap.h"
20 #include "hazelcast/client/MultiMap.h"
21 #include "hazelcast/client/IQueue.h"
22 #include "hazelcast/client/ISet.h"
23 #include "hazelcast/client/IList.h"
24 #include "hazelcast/client/ITopic.h"
25 #include "hazelcast/client/TransactionOptions.h"
26 #include "hazelcast/client/TransactionContext.h"
27 #include "hazelcast/client/Cluster.h"
28 #include "hazelcast/client/ClientConfig.h"
29 #include "hazelcast/client/ClientProperties.h"
30 #include "hazelcast/client/spi/InvocationService.h"
31 #include "hazelcast/client/spi/PartitionService.h"
32 #include "hazelcast/client/spi/ServerListenerService.h"
33 #include "hazelcast/client/spi/LifecycleService.h"
34 #include "hazelcast/client/connection/ConnectionManager.h"
36 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
38 #pragma warning(disable: 4251) //for dll export
401 namespace connection {
402 class ConnectionManager;
405 namespace serialization {
407 class SerializationService;
413 class InvocationService;
415 class ClusterService;
417 class PartitionService;
419 class LifecycleService;
421 class ServerListenerService;
431 class ICountDownLatch;
437 class TransactionContext;
439 class TransactionOptions;
451 friend class spi::ClientContext;
474 T t(name, &(clientContext));
488 template<
typename K,
typename V>
490 return getDistributedObject<IMap<K, V> >(name);
499 template<
typename K,
typename V>
501 return getDistributedObject<MultiMap<K, V> >(name);
512 return getDistributedObject<IQueue<E> >(name);
525 return getDistributedObject<ISet<E> >(name);
537 return getDistributedObject<IList<E> >(name);
548 return getDistributedObject<ITopic<E> >(name);
559 IdGenerator getIdGenerator(
const std::string& name);
568 IAtomicLong getIAtomicLong(
const std::string& name);
604 ILock getILock(
const std::string& name);
613 ISemaphore getISemaphore(
const std::string& name);
672 spi::ClientContext clientContext;
673 spi::LifecycleService lifecycleService;
674 serialization::pimpl::SerializationService serializationService;
675 connection::ConnectionManager connectionManager;
676 spi::ClusterService clusterService;
677 spi::PartitionService partitionService;
678 spi::InvocationService invocationService;
679 spi::ServerListenerService serverListenerService;
691 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
Contains the configuration for a Hazelcast transaction.
Definition: TransactionOptions.h:67
Concurrent, blocking, distributed, observable, client queue.
Definition: IQueue.h:38
ITopic< E > getTopic(const std::string &name)
Returns the distributed topic instance with the specified name and entry type E.
Definition: HazelcastClient.h:547
Cluster-wide unique id generator.
Definition: IdGenerator.h:42
IQueue< E > getQueue(const std::string &name)
Returns the distributed queue instance with the specified name and entry type E.
Definition: HazelcastClient.h:511
IAtomicLong is a distributed atomic long implementation.
Definition: IAtomicLong.h:38
ICountDownLatch is a backed-up distributed alternative to the java.util.concurrent.CountDownLatch java.util.concurrent.CountDownLatch.
Definition: ICountDownLatch.h:62
MultiMap< K, V > getMultiMap(const std::string &name)
Returns the distributed multimap instance with the specified name.
Definition: HazelcastClient.h:500
IList< E > getList(const std::string &name)
Returns the distributed list instance with the specified name.
Definition: HazelcastClient.h:536
A specialized distributed map client whose keys can be associated with multiple values.
Definition: MultiMap.h:41
Re-entrant Lock, Distributed client implementation of Lock.
Definition: ILock.h:43
Client Properties is an internal class.
Definition: ClientProperties.h:71
Concurrent, distributed , client implementation of std::list.
Definition: IList.h:42
Concurrent, distributed client implementation of std::unordered_set.
Definition: ISet.h:36
Hazelcast provides distribution mechanism for publishing messages that are delivered to multiple subs...
Definition: ITopic.h:41
Hazelcast cluster interface.
Definition: Cluster.h:40
ISet< E > getSet(const std::string &name)
Returns the distributed set instance with the specified name and entry type E.
Definition: HazelcastClient.h:524
Listener object for listening lifecycle events of hazelcast instance.
Definition: LifecycleListener.h:44
IMap< K, V > getMap(const std::string &name)
Definition: HazelcastClient.h:489
Concurrent, distributed, observable and queryable map client.
Definition: IMap.h:58
ISemaphore is a backed-up distributed alternative to the java.util.concurrent.Semaphore.
Definition: ISemaphore.h:57
HazelcastClient configuration class.
Definition: ClientConfig.h:47
Hazelcast Client enables you to do all Hazelcast operations without being a member of the cluster...
Definition: HazelcastClient.h:450
Provides a context to do transactional operations; so beginning/committing transactions, but also retrieving transactional data-structures like the TransactionalMap.
Definition: TransactionContext.h:52
T getDistributedObject(const std::string &name)
Definition: HazelcastClient.h:473