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