use of com.hazelcast.spi.impl.proxyservice.ProxyService in project hazelcast by hazelcast.
the class AddDistributedObjectListenerMessageTask method call.
@Override
protected Object call() throws Exception {
final ProxyService proxyService = clientEngine.getProxyService();
final UUID registrationId = proxyService.addProxyListener(this);
endpoint.addDestroyAction(registrationId, (Callable) () -> proxyService.removeProxyListener(registrationId));
return registrationId;
}
use of com.hazelcast.spi.impl.proxyservice.ProxyService in project hazelcast by hazelcast.
the class HazelcastInstanceImpl method getDistributedObject.
@Nonnull
@Override
@SuppressWarnings("unchecked")
public <T extends DistributedObject> T getDistributedObject(@Nonnull String serviceName, @Nonnull String name) {
ProxyService proxyService = node.getNodeEngine().getProxyService();
UUID source = node.nodeEngine.getLocalMember().getUuid();
return (T) proxyService.getDistributedObject(serviceName, name, source);
}
use of com.hazelcast.spi.impl.proxyservice.ProxyService in project hazelcast by hazelcast.
the class HazelcastInstanceImpl method addDistributedObjectListener.
@Override
public UUID addDistributedObjectListener(@Nonnull DistributedObjectListener distributedObjectListener) {
checkNotNull(distributedObjectListener, "DistributedObjectListener must not be null!");
final ProxyService proxyService = node.getNodeEngine().getProxyService();
return proxyService.addProxyListener(distributedObjectListener);
}
Aggregations