EventReceivingConnectionHandler Class
- java.
lang. Object - BaseHandler
- ErrorLoggingBaseHandler
- ErrorLoggingBaseHandlerWithCleanup
- AmqpConnectionHandler
- com.
microsoft. azure. sdk. iot. service. transport. amqps. EventReceivingConnectionHandler
- com.
public class EventReceivingConnectionHandler
Instance of the QPID-Proton-J BaseHandler class to override the events what are needed to handle the receive operation Contains and sets connection parameters (path, port, endpoint) Maintains the layers of AMQP protocol (Link, Session, Connection, Transport) Creates and sets SASL authentication for transport
Field Summary
Modifier and Type | Field and Description |
---|---|
final String | MESSAGE_FEEDBACK_RECEIVE_TAG |
Constructor Summary
Method Summary
Modifier and Type | Method and Description |
---|---|
void | closeAsync(Runnable onConnectionClosedCallback) |
void | onAuthenticationSucceeded() |
void | onReactorFinal(Event event) |
void | onReceiverLinkRemoteOpen() |
void | onSenderLinkRemoteOpen() |
Inherited Members
Field Details
MESSAGE_FEEDBACK_RECEIVE_TAG
public static final String MESSAGE_FEEDBACK_RECEIVE_TAG= "cloudToDeviceMessageFeedbackReceiver"
Constructor Details
EventReceivingConnectionHandler
public EventReceivingConnectionHandler(String hostName, AzureSasCredential azureSasCredential, IotHubServiceClientProtocol protocol, Function
Parameters:
EventReceivingConnectionHandler
public EventReceivingConnectionHandler(String connectionString, IotHubServiceClientProtocol protocol, Function
Parameters:
EventReceivingConnectionHandler
public EventReceivingConnectionHandler(String hostName, TokenCredential credential, IotHubServiceClientProtocol protocol, Function
Parameters:
Method Details
closeAsync
public void closeAsync(Runnable onConnectionClosedCallback)
Parameters:
onAuthenticationSucceeded
public void onAuthenticationSucceeded()
onReactorFinal
public void onReactorFinal(Event event)
Parameters:
onReceiverLinkRemoteOpen
public void onReceiverLinkRemoteOpen()
onSenderLinkRemoteOpen
public void onSenderLinkRemoteOpen()
Applies to
Azure SDK for Java