com.rabbitmq.client.impl
public interface FrameHandler extends NetworkConnection
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the underlying data connection (complaint not permitted).
|
void |
flush()
Flush the underlying data connection.
|
int |
getTimeout()
Get the underlying socket's read timeout in milliseconds.
|
Frame |
readFrame()
Read a
Frame from the underlying data connection. |
void |
sendHeader()
Send the initial connection header, thus kickstarting the AMQP
protocol version negotiation process and putting the underlying
connection in a state such that the next layer of startup can
proceed.
|
void |
setTimeout(int timeoutMs)
Set the underlying socket's read timeout in milliseconds, if applicable.
|
void |
writeFrame(Frame frame)
Write a
Frame to the underlying data connection. |
getAddress, getLocalAddress, getLocalPort, getPort
void setTimeout(int timeoutMs) throws java.net.SocketException
timeoutMs
- The timeout in millisecondsjava.net.SocketException
int getTimeout() throws java.net.SocketException
java.net.SocketException
void sendHeader() throws java.io.IOException
java.io.IOException
- if there is a problem accessing the connectionFrame readFrame() throws java.io.IOException
Frame
from the underlying data connection.java.io.IOException
- if there is a problem accessing the connectionjava.net.SocketTimeoutException
- if the underlying read times outvoid writeFrame(Frame frame) throws java.io.IOException
Frame
to the underlying data connection.frame
- the Frame to transmitjava.io.IOException
- if there is a problem accessing the connectionvoid flush() throws java.io.IOException
java.io.IOException
- if there is a problem accessing the connectionvoid close()