public interface AMQProtocolSession<T extends AMQProtocolSession<T>> extends org.apache.qpid.protocol.AMQVersionAwareProtocolSession, AuthorizationHolder, AMQConnectionModel<T,AMQChannel<T>>
| Modifier and Type | Method and Description |
|---|---|
void |
addChannel(AMQChannel<T> channel)
Associate a channel with this session.
|
boolean |
channelAwaitingClosure(int channelId)
Check to see if this chanel is closing
|
void |
closeChannel(int channelId)
Close a specific channel.
|
void |
closeChannel(int channelId,
org.apache.qpid.protocol.AMQConstant cause,
String message) |
void |
closeChannelOk(int channelId)
Marks the specific channel as closed.
|
void |
closeProtocolSession() |
void |
closeSession()
This must be called when the session is _closed in order to free up any resources managed by the session.
|
ClientDeliveryMethod |
createDeliveryMethod(int channelId) |
void |
flushBatched() |
AMQChannel<T> |
getChannel(int channelId)
Get the channel for this session associated with the specified id.
|
List<AMQChannel<T>> |
getChannels() |
String |
getClientVersion() |
org.apache.qpid.framing.AMQShortString |
getContextKey()
Get the context key associated with this session.
|
Object |
getKey() |
long |
getLastIoTime() |
long |
getLastReceivedTime() |
SocketAddress |
getLocalAddress()
Return the local socket address for the connection
|
String |
getLocalFQDN()
Get the fully qualified domain name of the local address to which this session is bound.
|
long |
getMaxFrameSize() |
Long |
getMaximumNumberOfChannels() |
int |
getMessageCompressionThreshold() |
org.apache.qpid.framing.MethodDispatcher |
getMethodDispatcher() |
org.apache.qpid.framing.MethodRegistry |
getMethodRegistry() |
Principal |
getPeerPrincipal() |
ProtocolOutputConverter |
getProtocolOutputConverter() |
Lock |
getReceivedLock() |
Object |
getReference() |
SocketAddress |
getRemoteAddress() |
SaslServer |
getSaslServer() |
long |
getSessionID() |
VirtualHostImpl<?,?,?> |
getVirtualHost() |
long |
getWrittenBytes() |
void |
initHeartbeats(int delay)
Initialise heartbeats on the session.
|
boolean |
isCloseWhenNoRoute()
Used for 0-8/0-9/0-9-1 connections to choose to close
the connection when a transactional session receives a 'mandatory' message which
can't be routed rather than returning the message.
|
boolean |
isClosing() |
boolean |
isCompressionSupported() |
void |
removeChannel(int channelId)
Remove a channel from the session but do not close it.
|
void |
setAuthorizedSubject(Subject authorizedSubject) |
void |
setClientProperties(org.apache.qpid.framing.FieldTable clientProperties) |
void |
setContextKey(org.apache.qpid.framing.AMQShortString contextKey)
Set the context key associated with this session.
|
void |
setDeferFlush(boolean defer) |
void |
setMaxFrameSize(long frameMax) |
void |
setMaximumNumberOfChannels(Long value) |
void |
setSaslServer(SaslServer saslServer)
Set the sasl server that is to perform authentication for this session.
|
void |
setVirtualHost(VirtualHostImpl<?,?,?> virtualHost) |
contentBodyReceived, contentHeaderReceived, heartbeatBodyReceived, methodFrameReceived, setSendergetProtocolMajorVersion, getProtocolMinorVersion, getProtocolVersiongetAuthorizedPrincipal, getAuthorizedSubjectaddSessionListener, block, close, closeSession, getAuthorizedPrincipal, getClientId, getClientProduct, getConnectionId, getLogSubject, getPort, getRemoteAddressString, getRemoteContainerName, getRemoteProcessPid, getSessionCountLimit, getSessionModels, getTransport, getVirtualHostName, isSessionNameUnique, isStopped, removeSessionListener, stop, unblockgetDataDeliveryStatistics, getDataReceiptStatistics, getMessageDeliveryStatistics, getMessageReceiptStatistics, registerMessageDelivered, registerMessageReceived, resetStatisticsaddDeleteTask, removeDeleteTasklong getSessionID()
void setMaxFrameSize(long frameMax)
long getMaxFrameSize()
boolean isClosing()
void flushBatched()
void setDeferFlush(boolean defer)
ClientDeliveryMethod createDeliveryMethod(int channelId)
long getLastReceivedTime()
SocketAddress getLocalAddress()
org.apache.qpid.framing.AMQShortString getContextKey()
void setContextKey(org.apache.qpid.framing.AMQShortString contextKey)
contextKey - the context keyAMQChannel<T> getChannel(int channelId)
channelId - the channel id which must be validvoid addChannel(AMQChannel<T> channel) throws org.apache.qpid.AMQException
channel - the channel to associate with this session. It is an error to associate the same channel with more
than one session but this is not validated.org.apache.qpid.AMQExceptionvoid closeChannel(int channelId)
throws org.apache.qpid.AMQException
channelId - id of the channel to closeorg.apache.qpid.AMQException - if an error occurs closing the channelIllegalArgumentException - if the channel id is not validvoid closeChannel(int channelId,
org.apache.qpid.protocol.AMQConstant cause,
String message)
throws org.apache.qpid.AMQException
org.apache.qpid.AMQExceptionvoid closeChannelOk(int channelId)
channelId - id of the channel to closeboolean channelAwaitingClosure(int channelId)
channelId - id to checkvoid removeChannel(int channelId)
channelId - void initHeartbeats(int delay)
delay - delay in seconds (not ms)void closeSession()
void closeProtocolSession()
Object getKey()
String getLocalFQDN()
SaslServer getSaslServer()
void setSaslServer(SaslServer saslServer)
saslServer - void setClientProperties(org.apache.qpid.framing.FieldTable clientProperties)
Object getReference()
VirtualHostImpl<?,?,?> getVirtualHost()
getVirtualHost in interface AMQConnectionModel<T extends AMQProtocolSession<T>,AMQChannel<T extends AMQProtocolSession<T>>>void setVirtualHost(VirtualHostImpl<?,?,?> virtualHost) throws org.apache.qpid.AMQException
org.apache.qpid.AMQExceptionProtocolOutputConverter getProtocolOutputConverter()
void setAuthorizedSubject(Subject authorizedSubject)
SocketAddress getRemoteAddress()
getRemoteAddress in interface AMQConnectionModel<T extends AMQProtocolSession<T>,AMQChannel<T extends AMQProtocolSession<T>>>org.apache.qpid.framing.MethodRegistry getMethodRegistry()
getMethodRegistry in interface org.apache.qpid.protocol.AMQVersionAwareProtocolSessionorg.apache.qpid.framing.MethodDispatcher getMethodDispatcher()
String getClientVersion()
getClientVersion in interface AMQConnectionModel<T extends AMQProtocolSession<T>,AMQChannel<T extends AMQProtocolSession<T>>>long getLastIoTime()
getLastIoTime in interface AMQConnectionModel<T extends AMQProtocolSession<T>,AMQChannel<T extends AMQProtocolSession<T>>>long getWrittenBytes()
Long getMaximumNumberOfChannels()
void setMaximumNumberOfChannels(Long value)
List<AMQChannel<T>> getChannels()
Principal getPeerPrincipal()
Lock getReceivedLock()
boolean isCloseWhenNoRoute()
boolean isCompressionSupported()
int getMessageCompressionThreshold()
Copyright © 2006–2014 The Apache Software Foundation. All rights reserved.