Search in sources :

Example 1 with GlobalDomainAccessControllerProxy

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();
}
Also used : GlobalDomainAccessControllerProxy(joynr.infrastructure.GlobalDomainAccessControllerProxy) MessagingQos(io.joynr.messaging.MessagingQos) DiscoveryQos(io.joynr.arbitration.DiscoveryQos)

Aggregations

DiscoveryQos (io.joynr.arbitration.DiscoveryQos)1 MessagingQos (io.joynr.messaging.MessagingQos)1 GlobalDomainAccessControllerProxy (joynr.infrastructure.GlobalDomainAccessControllerProxy)1