public class AmqpConnectionHandler
extends com.microsoft.azure.sdk.iot.deps.transport.amqp.ErrorLoggingBaseHandlerWithCleanup
| Modifier and Type | Field and Description |
|---|---|
static String |
AMQPS_PORT |
static String |
AMQPS_WS_PORT |
protected boolean |
connectionOpenedRemotely |
protected String |
hostName |
protected IotHubServiceClientProtocol |
iotHubServiceClientProtocol |
protected boolean |
linkOpenedRemotely |
protected String |
sasToken |
protected Exception |
savedException |
protected boolean |
sessionOpenedRemotely |
protected String |
userName |
static String |
WEBSOCKET_PATH |
static String |
WEBSOCKET_SUB_PROTOCOL |
protected String |
webSocketHostName |
| Modifier | Constructor and Description |
|---|---|
protected |
AmqpConnectionHandler(String hostName,
String userName,
String sasToken,
IotHubServiceClientProtocol iotHubServiceClientProtocol) |
| Modifier and Type | Method and Description |
|---|---|
void |
onConnectionBound(org.apache.qpid.proton.engine.Event event)
Event handler for the connection bound event
|
void |
onConnectionRemoteOpen(org.apache.qpid.proton.engine.Event event) |
void |
onLinkRemoteOpen(org.apache.qpid.proton.engine.Event event) |
void |
onReactorInit(org.apache.qpid.proton.engine.Event event) |
void |
onSessionRemoteOpen(org.apache.qpid.proton.engine.Event event) |
protected void |
verifyConnectionWasOpened()
If an exception was encountered while opening the AMQP connection, this function shall throw that saved exception
|
onConnectionLocalClose, onConnectionLocalOpen, onConnectionRemoteClose, onLinkLocalClose, onLinkLocalOpen, onLinkRemoteClose, onSessionLocalClose, onSessionLocalOpen, onSessionRemoteClose, onTransportErroradd, children, getHandler, getHandler, handle, onConnectionFinal, onConnectionInit, onConnectionUnbound, onDelivery, onLinkFinal, onLinkFlow, onLinkInit, onLinkLocalDetach, onLinkRemoteDetach, onReactorFinal, onReactorQuiesced, onSelectableError, onSelectableExpired, onSelectableFinal, onSelectableInit, onSelectableReadable, onSelectableUpdated, onSelectableWritable, onSessionFinal, onSessionInit, onTimerTask, onTransport, onTransportClosed, onTransportHeadClosed, onTransportTailClosed, onUnhandled, setHandler, setHandlerpublic static final String WEBSOCKET_PATH
public static final String WEBSOCKET_SUB_PROTOCOL
public static final String AMQPS_PORT
public static final String AMQPS_WS_PORT
protected Exception savedException
protected boolean connectionOpenedRemotely
protected boolean sessionOpenedRemotely
protected boolean linkOpenedRemotely
protected final String hostName
protected final String userName
protected final String sasToken
protected final IotHubServiceClientProtocol iotHubServiceClientProtocol
protected final String webSocketHostName
protected AmqpConnectionHandler(String hostName, String userName, String sasToken, IotHubServiceClientProtocol iotHubServiceClientProtocol)
public void onReactorInit(org.apache.qpid.proton.engine.Event event)
onReactorInit in interface org.apache.qpid.proton.engine.CoreHandleronReactorInit in class org.apache.qpid.proton.engine.BaseHandlerpublic void onConnectionBound(org.apache.qpid.proton.engine.Event event)
onConnectionBound in interface org.apache.qpid.proton.engine.CoreHandleronConnectionBound in class org.apache.qpid.proton.engine.BaseHandlerevent - The proton event objectpublic void onLinkRemoteOpen(org.apache.qpid.proton.engine.Event event)
onLinkRemoteOpen in interface org.apache.qpid.proton.engine.CoreHandleronLinkRemoteOpen in class com.microsoft.azure.sdk.iot.deps.transport.amqp.ErrorLoggingBaseHandlerWithCleanuppublic void onSessionRemoteOpen(org.apache.qpid.proton.engine.Event event)
onSessionRemoteOpen in interface org.apache.qpid.proton.engine.CoreHandleronSessionRemoteOpen in class com.microsoft.azure.sdk.iot.deps.transport.amqp.ErrorLoggingBaseHandlerWithCleanuppublic void onConnectionRemoteOpen(org.apache.qpid.proton.engine.Event event)
onConnectionRemoteOpen in interface org.apache.qpid.proton.engine.CoreHandleronConnectionRemoteOpen in class com.microsoft.azure.sdk.iot.deps.transport.amqp.ErrorLoggingBaseHandlerWithCleanupprotected void verifyConnectionWasOpened()
throws IOException
IOException - if an exception was encountered while openinging the AMQP connection. The encountered
exception will be the inner exceptionCopyright © 2020. All rights reserved.