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
363 namespace connection {
364 class ConnectionManager;
367 namespace serialization {
369 class SerializationService;
375 class InvocationService;
377 class ClusterService;
379 class PartitionService;
381 class LifecycleService;
383 class ServerListenerService;
393 class ICountDownLatch;
399 class TransactionContext;
401 class TransactionOptions;
413 friend class spi::ClientContext;
435 T t(name, &(clientContext));
447 template<
typename K,
typename V>
449 return getDistributedObject<IMap<K, V> >(name);
458 template<
typename K,
typename V>
460 return getDistributedObject<MultiMap<K, V> >(name);
471 return getDistributedObject<IQueue<E> >(name);
484 return getDistributedObject<ISet<E> >(name);
496 return getDistributedObject<IList<E> >(name);
507 return getDistributedObject<ITopic<E> >(name);
518 IdGenerator getIdGenerator(
const std::string& name);
527 IAtomicLong getIAtomicLong(
const std::string& name);
563 ILock getILock(
const std::string& name);
572 ISemaphore getISemaphore(
const std::string& name);
631 spi::ClientContext clientContext;
632 spi::LifecycleService lifecycleService;
633 serialization::pimpl::SerializationService serializationService;
634 connection::ConnectionManager connectionManager;
635 spi::ClusterService clusterService;
636 spi::PartitionService partitionService;
637 spi::InvocationService invocationService;
638 spi::ServerListenerService serverListenerService;
650 #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:506
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:470
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:459
IList< E > getList(const std::string &name)
Returns the distributed list instance with the specified name.
Definition: HazelcastClient.h:495
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:483
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:448
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:412
Provides a context to do transactional operations; so beginning/committing transactions, but also retrieving transactional data-structures like the TransactionalMap.
Definition: TransactionContext.h:57
T getDistributedObject(const std::string &name)
Definition: HazelcastClient.h:434