use of org.eclipse.hono.client.RequestResponseClientConfigProperties in project hono by eclipse.
the class TenantClientImplTest method setUp.
/**
* Sets up the fixture.
*/
@SuppressWarnings("unchecked")
@Before
public void setUp() {
vertx = mock(Vertx.class);
context = HonoClientUnitTestHelper.mockContext(vertx);
final ProtonReceiver receiver = HonoClientUnitTestHelper.mockProtonReceiver();
sender = HonoClientUnitTestHelper.mockProtonSender();
cache = mock(ExpiringValueCache.class);
final RequestResponseClientConfigProperties config = new RequestResponseClientConfigProperties();
client = new TenantClientImpl(context, config, sender, receiver);
}
use of org.eclipse.hono.client.RequestResponseClientConfigProperties in project hono by eclipse.
the class AbstractAdapterConfig method registrationServiceClientConfig.
/**
* Exposes configuration properties for accessing the registration service as a Spring bean.
* <p>
* Sets the <em>amqpHostname</em> to {@code hono-device-registry} if not set explicitly.
*
* @return The properties.
*/
@Qualifier(RegistrationConstants.REGISTRATION_ENDPOINT)
@ConfigurationProperties(prefix = "hono.registration")
@Bean
public RequestResponseClientConfigProperties registrationServiceClientConfig() {
final RequestResponseClientConfigProperties config = new RequestResponseClientConfigProperties();
customizeRegistrationServiceClientConfig(config);
return config;
}
use of org.eclipse.hono.client.RequestResponseClientConfigProperties in project hono by eclipse.
the class AbstractAdapterConfig method credentialsServiceClientConfig.
/**
* Exposes configuration properties for accessing the credentials service as a Spring bean.
*
* @return The properties.
*/
@Qualifier(CredentialsConstants.CREDENTIALS_ENDPOINT)
@ConfigurationProperties(prefix = "hono.credentials")
@Bean
public ClientConfigProperties credentialsServiceClientConfig() {
final RequestResponseClientConfigProperties config = new RequestResponseClientConfigProperties();
customizeCredentialsServiceClientConfig(config);
return config;
}
use of org.eclipse.hono.client.RequestResponseClientConfigProperties in project hono by eclipse.
the class RegistrationClientImplTest method setUp.
/**
* Sets up the fixture.
*/
@SuppressWarnings("unchecked")
@Before
public void setUp() {
vertx = mock(Vertx.class);
context = HonoClientUnitTestHelper.mockContext(vertx);
final ProtonReceiver receiver = HonoClientUnitTestHelper.mockProtonReceiver();
sender = HonoClientUnitTestHelper.mockProtonSender();
cache = mock(ExpiringValueCache.class);
final RequestResponseClientConfigProperties config = new RequestResponseClientConfigProperties();
client = new RegistrationClientImpl(context, config, "tenant", sender, receiver);
}
use of org.eclipse.hono.client.RequestResponseClientConfigProperties in project hono by eclipse.
the class AbstractAdapterConfig method tenantServiceClientConfig.
/**
* Exposes configuration properties for accessing the tenant service as a Spring bean.
*
* @return The properties.
*/
@Qualifier(TenantConstants.TENANT_ENDPOINT)
@ConfigurationProperties(prefix = "hono.tenant")
@Bean
public RequestResponseClientConfigProperties tenantServiceClientConfig() {
final RequestResponseClientConfigProperties config = new RequestResponseClientConfigProperties();
customizeTenantServiceClientConfig(config);
return config;
}
Aggregations