com.hazelcast.client.impl
Class HazelcastClientProxy

java.lang.Object
  extended by com.hazelcast.client.impl.HazelcastClientProxy
All Implemented Interfaces:
HazelcastInstance

public final class HazelcastClientProxy
extends Object
implements HazelcastInstance

A client-side proxy HazelcastInstance instance.


Field Summary
 HazelcastClientInstanceImpl client
           
 
Constructor Summary
HazelcastClientProxy(HazelcastClientInstanceImpl client)
           
 
Method Summary
 String addDistributedObjectListener(DistributedObjectListener distributedObjectListener)
           
<T> T
executeTransaction(TransactionalTask<T> task)
           
<T> T
executeTransaction(TransactionOptions options, TransactionalTask<T> task)
           
 IAtomicLong getAtomicLong(String name)
           
<E> IAtomicReference<E>
getAtomicReference(String name)
           
 ClientConfig getClientConfig()
           
 ClientService getClientService()
           
 Cluster getCluster()
           
 Config getConfig()
           
 ICountDownLatch getCountDownLatch(String name)
           
<T extends DistributedObject>
T
getDistributedObject(String serviceName, Object id)
          Deprecated. 
<T extends DistributedObject>
T
getDistributedObject(String serviceName, String name)
           
 Collection<DistributedObject> getDistributedObjects()
           
 IExecutorService getExecutorService(String name)
           
 IdGenerator getIdGenerator(String name)
           
 JobTracker getJobTracker(String name)
           
 LifecycleService getLifecycleService()
           
<E> IList<E>
getList(String name)
           
 Client getLocalEndpoint()
           
 ILock getLock(Object key)
           
 ILock getLock(String key)
           
 LoggingService getLoggingService()
           
<K,V> IMap<K,V>
getMap(String name)
           
<K,V> MultiMap<K,V>
getMultiMap(String name)
           
 String getName()
           
 PartitionService getPartitionService()
           
<E> IQueue<E>
getQueue(String name)
           
<K,V> ReplicatedMap<K,V>
getReplicatedMap(String name)
           
 ISemaphore getSemaphore(String name)
           
 SerializationService getSerializationService()
           
<E> ISet<E>
getSet(String name)
           
<E> ITopic<E>
getTopic(String name)
           
 ConcurrentMap<String,Object> getUserContext()
           
 TransactionContext newTransactionContext()
           
 TransactionContext newTransactionContext(TransactionOptions options)
           
 boolean removeDistributedObjectListener(String registrationId)
           
 void shutdown()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

client

public volatile HazelcastClientInstanceImpl client
Constructor Detail

HazelcastClientProxy

public HazelcastClientProxy(HazelcastClientInstanceImpl client)
Method Detail

getConfig

public Config getConfig()
Specified by:
getConfig in interface HazelcastInstance

getName

public String getName()
Specified by:
getName in interface HazelcastInstance

getQueue

public <E> IQueue<E> getQueue(String name)
Specified by:
getQueue in interface HazelcastInstance

getTopic

public <E> ITopic<E> getTopic(String name)
Specified by:
getTopic in interface HazelcastInstance

getSet

public <E> ISet<E> getSet(String name)
Specified by:
getSet in interface HazelcastInstance

getList

public <E> IList<E> getList(String name)
Specified by:
getList in interface HazelcastInstance

getMap

public <K,V> IMap<K,V> getMap(String name)
Specified by:
getMap in interface HazelcastInstance

getMultiMap

public <K,V> MultiMap<K,V> getMultiMap(String name)
Specified by:
getMultiMap in interface HazelcastInstance

getReplicatedMap

public <K,V> ReplicatedMap<K,V> getReplicatedMap(String name)
Specified by:
getReplicatedMap in interface HazelcastInstance

getJobTracker

public JobTracker getJobTracker(String name)
Specified by:
getJobTracker in interface HazelcastInstance

getLock

public ILock getLock(Object key)
Specified by:
getLock in interface HazelcastInstance

getLock

public ILock getLock(String key)
Specified by:
getLock in interface HazelcastInstance

getCluster

public Cluster getCluster()
Specified by:
getCluster in interface HazelcastInstance

getLocalEndpoint

public Client getLocalEndpoint()
Specified by:
getLocalEndpoint in interface HazelcastInstance

getExecutorService

public IExecutorService getExecutorService(String name)
Specified by:
getExecutorService in interface HazelcastInstance

executeTransaction

public <T> T executeTransaction(TransactionalTask<T> task)
                     throws TransactionException
Specified by:
executeTransaction in interface HazelcastInstance
Throws:
TransactionException

executeTransaction

public <T> T executeTransaction(TransactionOptions options,
                                TransactionalTask<T> task)
                     throws TransactionException
Specified by:
executeTransaction in interface HazelcastInstance
Throws:
TransactionException

newTransactionContext

public TransactionContext newTransactionContext()
Specified by:
newTransactionContext in interface HazelcastInstance

newTransactionContext

public TransactionContext newTransactionContext(TransactionOptions options)
Specified by:
newTransactionContext in interface HazelcastInstance

getIdGenerator

public IdGenerator getIdGenerator(String name)
Specified by:
getIdGenerator in interface HazelcastInstance

getAtomicLong

public IAtomicLong getAtomicLong(String name)
Specified by:
getAtomicLong in interface HazelcastInstance

getAtomicReference

public <E> IAtomicReference<E> getAtomicReference(String name)
Specified by:
getAtomicReference in interface HazelcastInstance

getCountDownLatch

public ICountDownLatch getCountDownLatch(String name)
Specified by:
getCountDownLatch in interface HazelcastInstance

getSemaphore

public ISemaphore getSemaphore(String name)
Specified by:
getSemaphore in interface HazelcastInstance

getDistributedObjects

public Collection<DistributedObject> getDistributedObjects()
Specified by:
getDistributedObjects in interface HazelcastInstance

addDistributedObjectListener

public String addDistributedObjectListener(DistributedObjectListener distributedObjectListener)
Specified by:
addDistributedObjectListener in interface HazelcastInstance

removeDistributedObjectListener

public boolean removeDistributedObjectListener(String registrationId)
Specified by:
removeDistributedObjectListener in interface HazelcastInstance

getPartitionService

public PartitionService getPartitionService()
Specified by:
getPartitionService in interface HazelcastInstance

getClientService

public ClientService getClientService()
Specified by:
getClientService in interface HazelcastInstance

getLoggingService

public LoggingService getLoggingService()
Specified by:
getLoggingService in interface HazelcastInstance

getLifecycleService

public LifecycleService getLifecycleService()
Specified by:
getLifecycleService in interface HazelcastInstance

getDistributedObject

@Deprecated
public <T extends DistributedObject> T getDistributedObject(String serviceName,
                                                                       Object id)
Deprecated. 

Specified by:
getDistributedObject in interface HazelcastInstance

getDistributedObject

public <T extends DistributedObject> T getDistributedObject(String serviceName,
                                                            String name)
Specified by:
getDistributedObject in interface HazelcastInstance

getUserContext

public ConcurrentMap<String,Object> getUserContext()
Specified by:
getUserContext in interface HazelcastInstance

getClientConfig

public ClientConfig getClientConfig()

shutdown

public void shutdown()
Specified by:
shutdown in interface HazelcastInstance

getSerializationService

public SerializationService getSerializationService()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.