use of org.eclipse.hono.client.impl.HonoClientImpl in project hono by eclipse.
the class AbstractAdapterConfig method tenantServiceClient.
/**
* Exposes a client for the <em>Tenant</em> API as a Spring bean.
*
* @return The client.
*/
@Bean
@Qualifier(TenantConstants.TENANT_ENDPOINT)
@Scope("prototype")
public HonoClient tenantServiceClient() {
final HonoClientImpl result = new HonoClientImpl(vertx(), tenantServiceClientConfig());
final CacheProvider cacheProvider = tenantCacheProvider();
if (cacheProvider != null) {
result.setCacheProvider(cacheProvider);
}
return result;
}
use of org.eclipse.hono.client.impl.HonoClientImpl in project hono by eclipse.
the class AbstractAdapterConfig method registrationServiceClient.
/**
* Exposes a client for the <em>Device Registration</em> API as a Spring bean.
*
* @return The client.
*/
@Bean
@Qualifier(RegistrationConstants.REGISTRATION_ENDPOINT)
@Scope("prototype")
public HonoClient registrationServiceClient() {
final HonoClientImpl result = new HonoClientImpl(vertx(), registrationServiceClientConfig());
final CacheProvider cacheProvider = registrationCacheProvider();
if (cacheProvider != null) {
result.setCacheProvider(cacheProvider);
}
return result;
}
Aggregations