Interface AMQVersionAwareProtocolSession
-
- All Superinterfaces:
AMQProtocolWriter,ProtocolVersionAware
public interface AMQVersionAwareProtocolSession extends AMQProtocolWriter, ProtocolVersionAware
AMQVersionAwareProtocolSession is implemented by all AMQP session classes, that need to provide an awareness to callers of the version of the AMQP protocol that they are able to work with.TODO Why is this a separate interface to
ProtocolVersionAware, could they be combined into a single interface and one of them eliminated? Move getRegistry method to ProtocolVersionAware, make the sessions implement AMQProtocolWriter directly and drop this interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcontentBodyReceived(int channelId, ContentBody body)voidcontentHeaderReceived(int channelId, ContentHeaderBody body)MethodRegistrygetMethodRegistry()Gets the method registry for a specific version of the AMQP.voidheartbeatBodyReceived(int channelId, HeartbeatBody body)voidmethodFrameReceived(int channelId, AMQMethodBody body)voidsetSender(org.apache.qpid.server.transport.ByteBufferSender sender)-
Methods inherited from interface org.apache.qpid.server.protocol.v0_8.transport.AMQProtocolWriter
writeFrame
-
Methods inherited from interface org.apache.qpid.server.protocol.v0_8.transport.ProtocolVersionAware
getProtocolVersion
-
-
-
-
Method Detail
-
getMethodRegistry
MethodRegistry getMethodRegistry()
Gets the method registry for a specific version of the AMQP.- Returns:
- The method registry for a specific version of the AMQP.
-
methodFrameReceived
void methodFrameReceived(int channelId, AMQMethodBody body) throws QpidException- Throws:
QpidException
-
contentHeaderReceived
void contentHeaderReceived(int channelId, ContentHeaderBody body) throws QpidException- Throws:
QpidException
-
contentBodyReceived
void contentBodyReceived(int channelId, ContentBody body) throws QpidException- Throws:
QpidException
-
heartbeatBodyReceived
void heartbeatBodyReceived(int channelId, HeartbeatBody body) throws QpidException- Throws:
QpidException
-
setSender
void setSender(org.apache.qpid.server.transport.ByteBufferSender sender)
-
-