ServiceClient Class
Definition
Extend the ServiceClient class and provide AMPQ specific implementation.
public class ServiceClient
- Inheritance
-
java.lang.ObjectServiceClient
Inherited Members
Constructors
Methods
| close() |
Close AMQP sender |
| closeAsync() |
Provide asynchronous access to close() |
| createFromConnectionString(String connectionString, IotHubServiceClientProtocol iotHubServiceClientProtocol) |
Create ServiceClient from the specified connection string |
| createFromConnectionString(String connectionString, IotHubServiceClientProtocol iotHubServiceClientProtocol, ServiceClientOptions options) |
Create ServiceClient from the specified connection string |
| getFeedbackReceiver() |
Instantiate a new FeedbackReceiver object. |
| getFeedbackReceiver(String deviceId) |
Get FeedbackReceiver object.This API has been deprecated. Use new API without deviceId as an input parameter. |
| getFileUploadNotificationReceiver() |
Instantiate a new FileUploadNotificationReceiver object. |
| open() |
Open AMQP sender |
| openAsync() |
Provide asynchronous access to open() |
| send(String deviceId, Message message) |
Send a one-way message to the specified device. This function is synchronized internally so that only one send operation is allowed at a time. In order to do more send operations at a time, you will need to instantiate another service client instance. |
| send(String deviceId, String moduleId, Message message) |
Send a one-way message to the specified module. This function is synchronized internally so that only one send operation is allowed at a time. In order to do more send operations at a time, you will need to instantiate another service client instance. |
| sendAsync(String deviceId, Message message) |
Provide asynchronous access to send() |