Class ConnectionHandler
- java.lang.Object
-
- org.apache.qpid.proton.engine.BaseHandler
-
- com.microsoft.azure.servicebus.amqp.ConnectionHandler
-
- All Implemented Interfaces:
org.apache.qpid.proton.engine.CoreHandler,org.apache.qpid.proton.engine.Handler
- Direct Known Subclasses:
WebSocketConnectionHandler
public class ConnectionHandler extends org.apache.qpid.proton.engine.BaseHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected IAmqpConnectionmessagingFactory
-
Constructor Summary
Constructors Modifier Constructor Description protectedConnectionHandler(IAmqpConnection messagingFactory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTransportLayers(org.apache.qpid.proton.engine.Event event, org.apache.qpid.proton.engine.impl.TransportInternal transport)static ConnectionHandlercreate(TransportType transportType, IAmqpConnection messagingFactory)intgetMaxFrameSize()protected IAmqpConnectiongetMessagingFactory()StringgetOutboundSocketHostName()intgetOutboundSocketPort()intgetProtocolPort()protected voidnotifyTransportErrors(org.apache.qpid.proton.engine.Event event)voidonConnectionBound(org.apache.qpid.proton.engine.Event event)voidonConnectionFinal(org.apache.qpid.proton.engine.Event event)voidonConnectionInit(org.apache.qpid.proton.engine.Event event)voidonConnectionLocalClose(org.apache.qpid.proton.engine.Event event)voidonConnectionRemoteClose(org.apache.qpid.proton.engine.Event event)voidonConnectionRemoteOpen(org.apache.qpid.proton.engine.Event event)voidonTransportError(org.apache.qpid.proton.engine.Event event)-
Methods inherited from class org.apache.qpid.proton.engine.BaseHandler
add, children, getHandler, getHandler, handle, onConnectionLocalOpen, onConnectionUnbound, onDelivery, onLinkFinal, onLinkFlow, onLinkInit, onLinkLocalClose, onLinkLocalDetach, onLinkLocalOpen, onLinkRemoteClose, onLinkRemoteDetach, onLinkRemoteOpen, onReactorFinal, onReactorInit, onReactorQuiesced, onSelectableError, onSelectableExpired, onSelectableFinal, onSelectableInit, onSelectableReadable, onSelectableUpdated, onSelectableWritable, onSessionFinal, onSessionInit, onSessionLocalClose, onSessionLocalOpen, onSessionRemoteClose, onSessionRemoteOpen, onTimerTask, onTransport, onTransportClosed, onTransportHeadClosed, onTransportTailClosed, onUnhandled, setHandler, setHandler
-
-
-
-
Field Detail
-
messagingFactory
protected final IAmqpConnection messagingFactory
-
-
Constructor Detail
-
ConnectionHandler
protected ConnectionHandler(IAmqpConnection messagingFactory)
-
-
Method Detail
-
create
public static ConnectionHandler create(TransportType transportType, IAmqpConnection messagingFactory)
-
onConnectionInit
public void onConnectionInit(org.apache.qpid.proton.engine.Event event)
- Specified by:
onConnectionInitin interfaceorg.apache.qpid.proton.engine.CoreHandler- Overrides:
onConnectionInitin classorg.apache.qpid.proton.engine.BaseHandler
-
getMessagingFactory
protected IAmqpConnection getMessagingFactory()
-
addTransportLayers
public void addTransportLayers(org.apache.qpid.proton.engine.Event event, org.apache.qpid.proton.engine.impl.TransportInternal transport)
-
notifyTransportErrors
protected void notifyTransportErrors(org.apache.qpid.proton.engine.Event event)
-
getOutboundSocketHostName
public String getOutboundSocketHostName()
-
getOutboundSocketPort
public int getOutboundSocketPort()
-
getProtocolPort
public int getProtocolPort()
-
getMaxFrameSize
public int getMaxFrameSize()
-
onConnectionBound
public void onConnectionBound(org.apache.qpid.proton.engine.Event event)
- Specified by:
onConnectionBoundin interfaceorg.apache.qpid.proton.engine.CoreHandler- Overrides:
onConnectionBoundin classorg.apache.qpid.proton.engine.BaseHandler
-
onTransportError
public void onTransportError(org.apache.qpid.proton.engine.Event event)
- Specified by:
onTransportErrorin interfaceorg.apache.qpid.proton.engine.CoreHandler- Overrides:
onTransportErrorin classorg.apache.qpid.proton.engine.BaseHandler
-
onConnectionRemoteOpen
public void onConnectionRemoteOpen(org.apache.qpid.proton.engine.Event event)
- Specified by:
onConnectionRemoteOpenin interfaceorg.apache.qpid.proton.engine.CoreHandler- Overrides:
onConnectionRemoteOpenin classorg.apache.qpid.proton.engine.BaseHandler
-
onConnectionRemoteClose
public void onConnectionRemoteClose(org.apache.qpid.proton.engine.Event event)
- Specified by:
onConnectionRemoteClosein interfaceorg.apache.qpid.proton.engine.CoreHandler- Overrides:
onConnectionRemoteClosein classorg.apache.qpid.proton.engine.BaseHandler
-
onConnectionFinal
public void onConnectionFinal(org.apache.qpid.proton.engine.Event event)
- Specified by:
onConnectionFinalin interfaceorg.apache.qpid.proton.engine.CoreHandler- Overrides:
onConnectionFinalin classorg.apache.qpid.proton.engine.BaseHandler
-
onConnectionLocalClose
public void onConnectionLocalClose(org.apache.qpid.proton.engine.Event event)
- Specified by:
onConnectionLocalClosein interfaceorg.apache.qpid.proton.engine.CoreHandler- Overrides:
onConnectionLocalClosein classorg.apache.qpid.proton.engine.BaseHandler
-
-