use of joynr.infrastructure.GlobalDomainAccessControllerProxy in project joynr by bmwcarit.
the class GlobalDomainAccessControllerClient method getGlobalDomainAccessControllerProxy.
private GlobalDomainAccessControllerProxy getGlobalDomainAccessControllerProxy(long ttl) {
ProxyBuilder<GlobalDomainAccessControllerProxy> accessControlProxyBuilder = proxyBuilderFactory.get(domain, GlobalDomainAccessControllerProxy.class);
DiscoveryQos discoveryQos = new DiscoveryQos();
discoveryQos.setDiscoveryScope(DiscoveryScope.GLOBAL_ONLY);
discoveryQos.setCacheMaxAgeMs(DiscoveryQos.NO_MAX_AGE);
MessagingQos messagingQos = new MessagingQos(ttl);
return accessControlProxyBuilder.setDiscoveryQos(discoveryQos).setMessagingQos(messagingQos).build();
}
Aggregations