public class AMQPConnectionContext extends ProtonInitializable implements EventHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
AMQP_CONTAINER_ID |
static org.apache.qpid.proton.amqp.Symbol |
CONNECTION_OPEN_FAILED |
protected ProtonHandler |
handler |
| Constructor and Description |
|---|
AMQPConnectionContext(ProtonProtocolManager protocolManager,
AMQPConnectionCallback connectionSP,
String containerId,
int idleTimeout,
int maxFrameSize,
int channelMax,
boolean useCoreSubscriptionNaming,
ScheduledExecutorService scheduledPool,
boolean isIncomingConnection,
ClientSASLFactory saslClientFactory,
Map<org.apache.qpid.proton.amqp.Symbol,Object> connectionProperties) |
AMQPConnectionContext(ProtonProtocolManager protocolManager,
AMQPConnectionCallback connectionSP,
String containerId,
int idleTimeout,
int maxFrameSize,
int channelMax,
boolean useCoreSubscriptionNaming,
ScheduledExecutorService scheduledPool,
boolean isIncomingConnection,
ClientSASLFactory saslClientFactory,
Map<org.apache.qpid.proton.amqp.Symbol,Object> connectionProperties,
boolean bridgeConnection) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEventHandler(EventHandler eventHandler) |
void |
afterFlush(Runnable runnable) |
boolean |
checkDataReceived() |
void |
close(org.apache.qpid.proton.amqp.transport.ErrorCondition errorCondition) |
void |
destroy() |
boolean |
flowControl(ReadyListener readyListener) |
void |
flush() |
int |
getAmqpCredits() |
int |
getAmqpLowCredits() |
AMQPConnectionCallback |
getConnectionCallback() |
org.apache.qpid.proton.amqp.Symbol[] |
getConnectionCapabilitiesOffered() |
String |
getContainer() |
long |
getCreationTime() |
ProtonHandler |
getHandler() |
LinkCloseListener |
getLinkCloseListener() |
ProtonProtocolManager |
getProtocolManager() |
String |
getPubSubPrefix() |
String |
getRemoteAddress() |
String |
getRemoteContainer() |
ClientSASLFactory |
getSaslClientFactory() |
SASLResult |
getSASLResult() |
org.apache.activemq.artemis.core.security.SecurityAuth |
getSecurityAuth() |
AMQPSessionContext |
getSessionExtension(org.apache.qpid.proton.engine.Session realSession) |
protected void |
initInternal() |
void |
inputBuffer(io.netty.buffer.ByteBuf buffer) |
void |
instantFlush() |
boolean |
isBridgeConnection() |
boolean |
isHandler() |
boolean |
isIncomingConnection() |
boolean |
isSyncOnFlush() |
boolean |
isUseCoreSubscriptionNaming() |
protected AMQPSessionContext |
newSessionExtension(org.apache.qpid.proton.engine.Session realSession) |
void |
onAuthFailed(ProtonHandler protonHandler,
org.apache.qpid.proton.engine.Connection connection) |
void |
onAuthInit(ProtonHandler handler,
org.apache.qpid.proton.engine.Connection connection,
boolean sasl) |
void |
onAuthSuccess(ProtonHandler protonHandler,
org.apache.qpid.proton.engine.Connection connection) |
void |
onDelivery(org.apache.qpid.proton.engine.Delivery delivery) |
void |
onFlow(org.apache.qpid.proton.engine.Link link) |
void |
onLocalDetach(org.apache.qpid.proton.engine.Link link) |
void |
onLocalOpen(org.apache.qpid.proton.engine.Session session) |
void |
onRemoteClose(org.apache.qpid.proton.engine.Connection connection) |
void |
onRemoteClose(org.apache.qpid.proton.engine.Link link) |
void |
onRemoteClose(org.apache.qpid.proton.engine.Session session) |
void |
onRemoteDetach(org.apache.qpid.proton.engine.Link link) |
void |
onRemoteOpen(org.apache.qpid.proton.engine.Connection connection) |
void |
onRemoteOpen(org.apache.qpid.proton.engine.Link link) |
void |
onRemoteOpen(org.apache.qpid.proton.engine.Session session) |
void |
onSaslMechanismsOffered(ProtonHandler handler,
String[] mechanisms) |
void |
onSaslRemoteMechanismChosen(ProtonHandler handler,
String mech) |
void |
onTransport(org.apache.qpid.proton.engine.Transport transport) |
void |
open() |
void |
pushBytes(io.netty.buffer.ByteBuf bytes) |
protected void |
remoteLinkOpened(org.apache.qpid.proton.engine.Link link) |
void |
requireInHandler() |
void |
runLater(Runnable run) |
void |
runNow(Runnable run) |
void |
runOnPool(Runnable run) |
void |
scheduledFlush() |
AMQPConnectionContext |
setLinkCloseListener(LinkCloseListener linkCloseListener) |
protected boolean |
validateConnection(org.apache.qpid.proton.engine.Connection connection) |
protected boolean |
verifyDesiredCapabilities(org.apache.qpid.proton.engine.Receiver reciever,
org.apache.qpid.proton.amqp.Symbol s) |
initialize, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonFinal, onFinal, onFinal, onInit, onInit, onInit, onLocalClose, onLocalClose, onLocalClose, onLocalOpen, onLocalOpenpublic static final org.apache.qpid.proton.amqp.Symbol CONNECTION_OPEN_FAILED
public static final String AMQP_CONTAINER_ID
protected final ProtonHandler handler
public AMQPConnectionContext(ProtonProtocolManager protocolManager, AMQPConnectionCallback connectionSP, String containerId, int idleTimeout, int maxFrameSize, int channelMax, boolean useCoreSubscriptionNaming, ScheduledExecutorService scheduledPool, boolean isIncomingConnection, ClientSASLFactory saslClientFactory, Map<org.apache.qpid.proton.amqp.Symbol,Object> connectionProperties)
public AMQPConnectionContext(ProtonProtocolManager protocolManager, AMQPConnectionCallback connectionSP, String containerId, int idleTimeout, int maxFrameSize, int channelMax, boolean useCoreSubscriptionNaming, ScheduledExecutorService scheduledPool, boolean isIncomingConnection, ClientSASLFactory saslClientFactory, Map<org.apache.qpid.proton.amqp.Symbol,Object> connectionProperties, boolean bridgeConnection)
public LinkCloseListener getLinkCloseListener()
public AMQPConnectionContext setLinkCloseListener(LinkCloseListener linkCloseListener)
public boolean isBridgeConnection()
public void requireInHandler()
public boolean isHandler()
public void scheduledFlush()
public boolean isIncomingConnection()
public ClientSASLFactory getSaslClientFactory()
protected AMQPSessionContext newSessionExtension(org.apache.qpid.proton.engine.Session realSession) throws ActiveMQAMQPException
ActiveMQAMQPExceptionpublic org.apache.activemq.artemis.core.security.SecurityAuth getSecurityAuth()
public SASLResult getSASLResult()
public void inputBuffer(io.netty.buffer.ByteBuf buffer)
public ProtonHandler getHandler()
public void destroy()
public boolean isSyncOnFlush()
public void instantFlush()
public void flush()
public void afterFlush(Runnable runnable)
public void close(org.apache.qpid.proton.amqp.transport.ErrorCondition errorCondition)
public AMQPSessionContext getSessionExtension(org.apache.qpid.proton.engine.Session realSession) throws ActiveMQAMQPException
ActiveMQAMQPExceptionpublic void runOnPool(Runnable run)
public void runNow(Runnable run)
public void runLater(Runnable run)
protected boolean validateConnection(org.apache.qpid.proton.engine.Connection connection)
public boolean checkDataReceived()
public long getCreationTime()
public String getRemoteContainer()
public String getPubSubPrefix()
public AMQPConnectionCallback getConnectionCallback()
protected void remoteLinkOpened(org.apache.qpid.proton.engine.Link link)
throws Exception
Exceptionprotected boolean verifyDesiredCapabilities(org.apache.qpid.proton.engine.Receiver reciever,
org.apache.qpid.proton.amqp.Symbol s)
public org.apache.qpid.proton.amqp.Symbol[] getConnectionCapabilitiesOffered()
public void open()
public String getContainer()
public void addEventHandler(EventHandler eventHandler)
public ProtonProtocolManager getProtocolManager()
public int getAmqpLowCredits()
public int getAmqpCredits()
public boolean isUseCoreSubscriptionNaming()
public void onAuthInit(ProtonHandler handler, org.apache.qpid.proton.engine.Connection connection, boolean sasl)
onAuthInit in interface EventHandlerpublic void onSaslRemoteMechanismChosen(ProtonHandler handler, String mech)
onSaslRemoteMechanismChosen in interface EventHandlerpublic void onSaslMechanismsOffered(ProtonHandler handler, String[] mechanisms)
onSaslMechanismsOffered in interface EventHandlerpublic void onAuthFailed(ProtonHandler protonHandler, org.apache.qpid.proton.engine.Connection connection)
onAuthFailed in interface EventHandlerpublic void onAuthSuccess(ProtonHandler protonHandler, org.apache.qpid.proton.engine.Connection connection)
onAuthSuccess in interface EventHandlerpublic void onTransport(org.apache.qpid.proton.engine.Transport transport)
onTransport in interface EventHandlerpublic void pushBytes(io.netty.buffer.ByteBuf bytes)
pushBytes in interface EventHandlerpublic boolean flowControl(ReadyListener readyListener)
flowControl in interface EventHandlerpublic String getRemoteAddress()
getRemoteAddress in interface EventHandlerpublic void onRemoteOpen(org.apache.qpid.proton.engine.Connection connection)
throws Exception
onRemoteOpen in interface EventHandlerExceptionpublic void onRemoteClose(org.apache.qpid.proton.engine.Connection connection)
onRemoteClose in interface EventHandlerpublic void onLocalOpen(org.apache.qpid.proton.engine.Session session)
throws Exception
onLocalOpen in interface EventHandlerExceptionpublic void onRemoteOpen(org.apache.qpid.proton.engine.Session session)
throws Exception
onRemoteOpen in interface EventHandlerExceptionpublic void onRemoteClose(org.apache.qpid.proton.engine.Session session)
throws Exception
onRemoteClose in interface EventHandlerExceptionpublic void onRemoteOpen(org.apache.qpid.proton.engine.Link link)
throws Exception
onRemoteOpen in interface EventHandlerExceptionpublic void onFlow(org.apache.qpid.proton.engine.Link link)
throws Exception
onFlow in interface EventHandlerExceptionpublic void onRemoteClose(org.apache.qpid.proton.engine.Link link)
throws Exception
onRemoteClose in interface EventHandlerExceptionpublic void onRemoteDetach(org.apache.qpid.proton.engine.Link link)
throws Exception
onRemoteDetach in interface EventHandlerExceptionpublic void onLocalDetach(org.apache.qpid.proton.engine.Link link)
throws Exception
onLocalDetach in interface EventHandlerExceptionpublic void onDelivery(org.apache.qpid.proton.engine.Delivery delivery)
throws Exception
onDelivery in interface EventHandlerExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.