public final class ProxyRegistry extends Object
Modifier and Type | Method and Description |
---|---|
DistributedObjectFuture |
createProxy(String name,
boolean publishEvent,
boolean initialize)
Creates a DistributedObject proxy if it is not created yet
|
Collection<String> |
getDistributedObjectNames() |
void |
getDistributedObjects(Collection<DistributedObject> result)
Gets the DistributedObjects in this registry.
|
DistributedObject |
getOrCreateProxy(String name,
boolean publishEvent)
Retrieves a DistributedObject proxy or creates it if it is not available.
|
DistributedObjectFuture |
getOrCreateProxyFuture(String name,
boolean publishEvent,
boolean initialize)
Retrieves a DistributedObjectFuture or creates it if it is not available.
|
int |
getProxyCount()
Returns the number of proxies for this ProxyRegistry.
|
void |
getProxyInfos(Collection<ProxyInfo> result)
Gets the ProxyInfo of all fully initialized proxies in this registry.
|
String |
getServiceName()
Returns the name of the service for this ProxyRegistry.
|
public String getServiceName()
public int getProxyCount()
public Collection<String> getDistributedObjectNames()
public void getProxyInfos(Collection<ProxyInfo> result)
result
- The ProxyInfo of all proxies in this registry.public void getDistributedObjects(Collection<DistributedObject> result)
result
- The DistributedObjects in this registry.public DistributedObject getOrCreateProxy(String name, boolean publishEvent)
InitializingObject.initialize()
,
if it implements InitializingObject
.name
- The name of the DistributedObject proxy object to retrieve or create.publishEvent
- true if a DistributedObjectEvent should be fired.public DistributedObjectFuture getOrCreateProxyFuture(String name, boolean publishEvent, boolean initialize)
initialize
is false and DistributedObject implements InitializingObject
,
InitializingObject.initialize()
will be called before DistributedObjectFuture.get()
returns.name
- The name of the DistributedObject proxy object to retrieve or create.publishEvent
- true if a DistributedObjectEvent should be fired.initialize
- true if the DistributedObject proxy object should be initialized.public DistributedObjectFuture createProxy(String name, boolean publishEvent, boolean initialize)
name
- The name of the distributedObject proxy object.publishEvent
- true if a DistributedObjectEvent should be fired.initialize
- true if he DistributedObject proxy object should be initialized.Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.