public interface Client extends AutoCloseable
An instance of a client can be obtained by building and instance
via different protocol stacks. e.g. see the KuraMqttProfile
.
In order to free resources the instance has to be closed when it is no longer needed.
Data is exchanged by the use of Application
s.
Modifier and Type | Interface and Description |
---|---|
static interface |
Client.Builder |
Modifier and Type | Method and Description |
---|---|
Application.Builder |
buildApplication(String applicationId)
Create a new application instance
|
Transport |
transport()
Get control over the transport
|
close
Transport transport()
Application.Builder buildApplication(String applicationId)
This method only returns a new builder which will
create a new instance once Application.Builder.build()
is called.
Before that the application is not built and no resources are claimed.
Application IDs are unique. If an application ID is already allocated it
cannot be allocated a second time. The second call to Application.Builder.build()
will fail.
However this application ID only allocated once the call to Application.Builder.build()
succeeded.
applicationId
- The ID of the application to createApplication.Builder
instanceCopyright © 2017. All rights reserved.