public class AmqpConnectionHandler extends java.lang.Object implements AmqpFrameHandler
Constructor and Description |
---|
AmqpConnectionHandler(AmqpLinkFactory linkFactory,
ReadStream is,
WriteStream os) |
Modifier and Type | Method and Description |
---|---|
AmqpSession |
beginSession() |
void |
closeConnection() |
void |
closeSender(AmqpLink link) |
void |
closeSessions() |
void |
flow(AmqpLink link,
long deliveryCount,
int credit) |
AmqpConnectionReader |
getReader() |
AmqpConnectionWriter |
getWriter() |
void |
onAttach(FrameAttach attach) |
void |
onBegin(FrameBegin beginRequest)
Receives a session-begin frame.
|
void |
onClose(FrameClose clientClose) |
void |
onDetach(FrameDetach clientDetach) |
void |
onDisposition(FrameDisposition disposition) |
void |
onEnd(FrameEnd clientEnd) |
void |
onFlow(FrameFlow flow) |
void |
onTransfer(AmqpReader ain,
FrameTransfer transfer) |
public AmqpConnectionHandler(AmqpLinkFactory linkFactory, ReadStream is, WriteStream os)
public AmqpConnectionReader getReader()
public AmqpConnectionWriter getWriter()
public AmqpSession beginSession()
public void onBegin(FrameBegin beginRequest) throws java.io.IOException
AmqpFrameHandler
onBegin
in interface AmqpFrameHandler
java.io.IOException
public void onEnd(FrameEnd clientEnd) throws java.io.IOException
onEnd
in interface AmqpFrameHandler
java.io.IOException
public void onAttach(FrameAttach attach)
onAttach
in interface AmqpFrameHandler
public void closeSender(AmqpLink link)
public void onDetach(FrameDetach clientDetach) throws java.io.IOException
onDetach
in interface AmqpFrameHandler
java.io.IOException
public void onTransfer(AmqpReader ain, FrameTransfer transfer) throws java.io.IOException
onTransfer
in interface AmqpFrameHandler
java.io.IOException
public void onDisposition(FrameDisposition disposition) throws java.io.IOException
onDisposition
in interface AmqpFrameHandler
java.io.IOException
public void flow(AmqpLink link, long deliveryCount, int credit)
handle
- public void onFlow(FrameFlow flow) throws java.io.IOException
onFlow
in interface AmqpFrameHandler
java.io.IOException
public void onClose(FrameClose clientClose) throws java.io.IOException
onClose
in interface AmqpFrameHandler
java.io.IOException
public void closeSessions()
public void closeConnection()