public class ServerConnection
extends org.apache.qpid.transport.Connection
| Modifier and Type | Field and Description |
|---|---|
static long |
CLOSE_OK_TIMEOUT |
| Constructor and Description |
|---|
ServerConnection(long connectionId,
Broker<?> broker,
AmqpPort<?> port,
Transport transport,
AMQPConnection_0_10 serverProtocolEngine) |
addConnectionListener, addFrameSizeObserver, close, close, closeCode, connect, connect, connect, createSession, createSession, createSession, createSession, createSession, createSession, createSession, createSession, createSession, dispatch, exception, flush, getChannelMax, getConnectionSettings, getListeners, getLocalAddress, getNetworkConnection, getRemoteSocketAddress, getSaslClient, getSecurityLayer, getSender, getServerProperties, getSession, getUserID, hasSessionWithName, isClosing, isConnectionResuming, isMessageCompressionSupported, isQueueLifetimePolicySupported, isRedirecting, isVirtualHostPropertiesSupported, notifyFailoverRequired, resume, setConnectionDelegate, setMaxFrameSize, setNetworkConnection, setRedirecting, setSender, setServerProperties, setSessionFactory, setUserID, toStringpublic static final long CLOSE_OK_TIMEOUT
public ServerConnection(long connectionId,
Broker<?> broker,
AmqpPort<?> port,
Transport transport,
AMQPConnection_0_10 serverProtocolEngine)
public Object getReference()
public Broker<?> getBroker()
protected void invoke(org.apache.qpid.transport.Method method)
invoke in class org.apache.qpid.transport.Connectionprotected void setState(org.apache.qpid.transport.Connection.State state)
setState in class org.apache.qpid.transport.Connectionpublic ServerConnectionDelegate getConnectionDelegate()
getConnectionDelegate in class org.apache.qpid.transport.Connectionpublic AMQPConnection_0_10 getAmqpConnection()
public NamedAddressSpace getAddressSpace()
public void setVirtualHost(NamedAddressSpace addressSpace)
public AmqpPort<?> getPort()
public Transport getTransport()
public void closeSessionAsync(ServerSession session, org.apache.qpid.protocol.AMQConstant cause, String message)
public void exception(Throwable t)
exception in interface org.apache.qpid.transport.ProtocolEventReceiverexception in class org.apache.qpid.transport.Connectionpublic void received(org.apache.qpid.transport.ProtocolEvent event)
received in interface org.apache.qpid.transport.ProtocolEventReceiverreceived in class org.apache.qpid.transport.Connectionpublic void sendConnectionCloseAsync(org.apache.qpid.protocol.AMQConstant cause,
String message)
protected void sendConnectionClose(org.apache.qpid.transport.ConnectionCloseCode replyCode,
String replyText,
org.apache.qpid.transport.Option... _options)
sendConnectionClose in class org.apache.qpid.transport.Connectionprotected void performDeleteTasks()
public void block()
public void unblock()
public void registerSession(org.apache.qpid.transport.Session ssn)
registerSession in class org.apache.qpid.transport.Connectionpublic void removeSession(org.apache.qpid.transport.Session ssn)
removeSession in class org.apache.qpid.transport.Connectionpublic Collection<? extends ServerSession> getSessionModels()
protected Collection<ServerSession> getChannels()
getChannels in class org.apache.qpid.transport.Connectionpublic Subject getAuthorizedSubject()
public void setAuthorizedSubject(Subject authorizedSubject)
public Principal getAuthorizedPrincipal()
public long getConnectionId()
public String getRemoteAddressString()
public void closed()
closed in interface org.apache.qpid.transport.ProtocolEventReceiverclosed in class org.apache.qpid.transport.Connectionpublic void receivedComplete()
public void send(org.apache.qpid.transport.ProtocolEvent event)
send in interface org.apache.qpid.transport.ProtocolEventSendersend in class org.apache.qpid.transport.Connectionpublic String getClientId()
public String getRemoteContainerName()
public String getClientVersion()
public String getClientProduct()
public long getSessionCountLimit()
public Principal getPeerPrincipal()
public void setRemoteAddress(SocketAddress remoteAddress)
setRemoteAddress in class org.apache.qpid.transport.Connectionpublic void setLocalAddress(SocketAddress localAddress)
setLocalAddress in class org.apache.qpid.transport.Connectionpublic void doHeartBeat()
doHeartBeat in class org.apache.qpid.transport.Connectionpublic int getMessageCompressionThreshold()
public int getMaxMessageSize()
public void transportStateChanged()
public void notifyWork()
public void closeAndIgnoreFutureInput()
public boolean isIgnoreFutureInput()
public boolean isConnectionLost()
isConnectionLost in class org.apache.qpid.transport.ConnectionCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.