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 AMQPConnectionCallback |
connectionCallback |
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) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEventHandler(EventHandler eventHandler) |
int |
capacity() |
boolean |
checkDataReceived() |
void |
close(org.apache.qpid.proton.amqp.transport.ErrorCondition errorCondition) |
void |
destroy() |
boolean |
flowControl(ReadyListener readyListener) |
void |
flush() |
int |
getAmqpCredits() |
int |
getAmqpLowCredits() |
org.apache.qpid.proton.amqp.Symbol[] |
getConnectionCapabilitiesOffered() |
String |
getContainer() |
long |
getCreationTime() |
ProtonProtocolManager |
getProtocolManager() |
String |
getPubSubPrefix() |
String |
getRemoteContainer() |
ClientSASLFactory |
getSaslClientFactory() |
SASLResult |
getSASLResult() |
protected AMQPSessionContext |
getSessionExtension(org.apache.qpid.proton.engine.Session realSession) |
protected void |
initInternal() |
void |
inputBuffer(io.netty.buffer.ByteBuf buffer) |
boolean |
isIncomingConnection() |
boolean |
isSyncOnFlush() |
boolean |
isUseCoreSubscriptionNaming() |
void |
lock() |
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 |
scheduledFlush() |
boolean |
tryLock(long time,
TimeUnit timeUnit) |
void |
unlock() |
protected boolean |
validateConnection(org.apache.qpid.proton.engine.Connection connection) |
initialise, 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
protected AMQPConnectionCallback connectionCallback
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 void scheduledFlush()
public boolean isIncomingConnection()
public ClientSASLFactory getSaslClientFactory()
protected AMQPSessionContext newSessionExtension(org.apache.qpid.proton.engine.Session realSession) throws ActiveMQAMQPException
ActiveMQAMQPExceptionpublic SASLResult getSASLResult()
public void inputBuffer(io.netty.buffer.ByteBuf buffer)
public void destroy()
public boolean isSyncOnFlush()
public boolean tryLock(long time,
TimeUnit timeUnit)
public void lock()
public void unlock()
public int capacity()
public void flush()
public void close(org.apache.qpid.proton.amqp.transport.ErrorCondition errorCondition)
protected AMQPSessionContext getSessionExtension(org.apache.qpid.proton.engine.Session realSession) throws ActiveMQAMQPException
ActiveMQAMQPExceptionprotected boolean validateConnection(org.apache.qpid.proton.engine.Connection connection)
public boolean checkDataReceived()
public long getCreationTime()
public String getRemoteContainer()
public String getPubSubPrefix()
protected void remoteLinkOpened(org.apache.qpid.proton.engine.Link link)
throws Exception
Exceptionpublic 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 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 © 2018 The Apache Software Foundation. All Rights Reserved.