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
361 namespace connection {
362 class ConnectionManager;
365 namespace serialization {
367 class SerializationService;
373 class InvocationService;
375 class ClusterService;
377 class PartitionService;
379 class LifecycleService;
381 class ServerListenerService;
391 class ICountDownLatch;
397 class TransactionContext;
399 class TransactionOptions;
411 friend class spi::ClientContext;
433 T t(name, &(clientContext));
445 template<
typename K,
typename V>
447 return getDistributedObject<IMap<K, V> >(name);
456 template<
typename K,
typename V>
458 return getDistributedObject<MultiMap<K, V> >(name);
469 return getDistributedObject<IQueue<E> >(name);
482 return getDistributedObject<ISet<E> >(name);
494 return getDistributedObject<IList<E> >(name);
505 return getDistributedObject<ITopic<E> >(name);
516 IdGenerator getIdGenerator(
const std::string& name);
525 IAtomicLong getIAtomicLong(
const std::string& name);
561 ILock getILock(
const std::string& name);
570 ISemaphore getISemaphore(
const std::string& name);
629 spi::ClientContext clientContext;
630 spi::LifecycleService lifecycleService;
631 serialization::pimpl::SerializationService serializationService;
632 connection::ConnectionManager connectionManager;
633 spi::ClusterService clusterService;
634 spi::PartitionService partitionService;
635 spi::InvocationService invocationService;
636 spi::ServerListenerService serverListenerService;
648 #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:34
ITopic< E > getTopic(const std::string &name)
Returns the distributed topic instance with the specified name and entry type E.
Definition: HazelcastClient.h:504
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:468
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:457
IList< E > getList(const std::string &name)
Returns the distributed list instance with the specified name.
Definition: HazelcastClient.h:493
A specialized distributed map client whose keys can be associated with multiple values.
Definition: MultiMap.h:37
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:38
Concurrent, distributed client implementation of std::unordered_set.
Definition: ISet.h:32
Hazelcast provides distribution mechanism for publishing messages that are delivered to multiple subs...
Definition: ITopic.h:45
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:481
Listener object for listening lifecycle events of hazelcast instance.
Definition: LifecycleListener.h:44
IMap< K, V > getMap(const std::string &name)
Returns the distributed map instance with the specified name.
Definition: HazelcastClient.h:446
Concurrent, distributed, observable and queryable map client.
Definition: IMap.h:52
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:410
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:432