ProvisioningAmqpOperations 类

定义

public class ProvisioningAmqpOperations extends AmqpDeviceOperations implements AmqpListener
继承
java.lang.Object
ProvisioningAmqpOperations

继承成员

构造函数

ProvisioningAmqpOperations(String idScope, String hostName)

Constructor for ProvisioningAmqpOperation that handle the AMQP transport for provisioning

方法

close()

Closes the AMQP connection

getAmqpMessageProperties()

Returns the message properties of the current message

isAmqpConnected()

Determines if the AMQP connect is up

messageReceived(AmqpMessage message)

Function that gets called when amqp gets a message from the amqp endpoint

messageSendFailed(String exceptionMessage)
open(String registrationId, SSLContext sslContext, SaslHandler saslHandler, boolean useWebSockets)

Opens the Amqp connection

sendRegisterMessage(ResponseCallback responseCallback, Object callbackContext, byte[] msgBody)

Sends the Registration message to the Amqp Endpoint

sendStatusMessage(String operationId, ResponseCallback responseCallback, Object callbackContext)

Sends the Status message to the Amqp Endpoint to check if the device has been provisioned yet or not

适用于