16 #ifndef HAZELCAST_CLIENT 17 #define HAZELCAST_CLIENT 19 #include "hazelcast/client/impl/HazelcastClientInstanceImpl.h" 21 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) 23 #pragma warning(disable: 4251) //for dll export 395 friend class spi::ClientContext;
409 const std::string &getName()
const;
419 return clientImpl->getDistributedObject<T>(name);
431 template<
typename K,
typename V>
433 return clientImpl->getMap<K, V>(name);
442 template<
typename K,
typename V>
444 return clientImpl->getMultiMap<K, V>(name);
447 template<
typename K,
typename V>
448 boost::shared_ptr<ReplicatedMap<K, V> > getReplicatedMap(
const std::string &name) {
449 return clientImpl->getReplicatedMap<K, V>(name);
460 return clientImpl->getQueue<E>(name);
473 return clientImpl->getSet<E>(name);
485 return clientImpl->getList<E>(name);
496 return clientImpl->getTopic<E>(name);
507 return clientImpl->getReliableTopic<E>(name);
518 IdGenerator getIdGenerator(
const std::string& name);
547 IAtomicLong getIAtomicLong(
const std::string& name);
561 boost::shared_ptr<crdt::pncounter::PNCounter> getPNCounter(
const std::string& name);
597 ILock getILock(
const std::string& name);
605 template <
typename E>
607 return clientImpl->getRingbuffer<E>(name);
617 ISemaphore getISemaphore(
const std::string& name);
687 spi::LifecycleService &getLifecycleService();
689 boost::shared_ptr<impl::HazelcastClientInstanceImpl> clientImpl;
695 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) Contains the configuration for a Hazelcast transaction.
Definition: TransactionOptions.h:67
Definition: HazelcastClient.h:39
Concurrent, blocking, distributed, observable, client queue.
Definition: IQueue.h:39
ITopic< E > getTopic(const std::string &name)
Returns the distributed topic instance with the specified name and entry type E.
Definition: HazelcastClient.h:495
Definition: IdGenerator.h:44
IQueue< E > getQueue(const std::string &name)
Returns the distributed queue instance with the specified name and entry type E.
Definition: HazelcastClient.h:459
IAtomicLong is a distributed atomic long implementation.
Definition: IAtomicLong.h:42
ICountDownLatch is a backed-up distributed alternative to the java.util.concurrent.CountDownLatch java.util.concurrent.CountDownLatch.
Definition: ICountDownLatch.h:61
MultiMap< K, V > getMultiMap(const std::string &name)
Returns the distributed multimap instance with the specified name.
Definition: HazelcastClient.h:443
boost::shared_ptr< ReliableTopic< E > > getReliableTopic(const std::string &name)
Returns the distributed topic instance with the specified name and entry type E.
Definition: HazelcastClient.h:506
IList< E > getList(const std::string &name)
Returns the distributed list instance with the specified name.
Definition: HazelcastClient.h:484
A specialized distributed map client whose keys can be associated with multiple values.
Definition: MultiMap.h:40
Re-entrant Lock, Distributed client implementation of Lock.
Definition: ILock.h:41
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
boost::shared_ptr< Ringbuffer< E > > getRingbuffer(const std::string &name)
Returns the distributed Ringbuffer instance with the specified name.
Definition: HazelcastClient.h:606
Hazelcast cluster interface.
Definition: Cluster.h:40
A cluster-wide unique ID generator.
Definition: FlakeIdGenerator.h:53
ISet< E > getSet(const std::string &name)
Returns the distributed set instance with the specified name and entry type E.
Definition: HazelcastClient.h:472
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:432
Concurrent, distributed, observable and queryable map client.
Definition: IMap.h:66
PN (Positive-Negative) CRDT counter.
Definition: MapEntryView.h:32
ISemaphore is a backed-up distributed alternative to the java.util.concurrent.Semaphore.
Definition: ISemaphore.h:57
HazelcastClient configuration class.
Definition: ClientConfig.h:59
Hazelcast Client enables you to do all Hazelcast operations without being a member of the cluster...
Definition: HazelcastClient.h:394
Provides a context to do transactional operations; so beginning/committing transactions, but also retrieving transactional data-structures like the TransactionalMap.
Definition: TransactionContext.h:54
T getDistributedObject(const std::string &name)
Definition: HazelcastClient.h:418