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.
|
void |
initialize(AMQConnection connection) |
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 SocketException
timeoutMs
- The timeout in millisecondsSocketException
int getTimeout() throws SocketException
SocketException
void sendHeader() throws IOException
IOException
- if there is a problem accessing the connectionvoid initialize(AMQConnection connection)
Frame readFrame() throws IOException
Frame
from the underlying data connection.IOException
- if there is a problem accessing the connectionSocketTimeoutException
- if the underlying read times outvoid writeFrame(Frame frame) throws IOException
Frame
to the underlying data connection.frame
- the Frame to transmitIOException
- if there is a problem accessing the connectionvoid flush() throws IOException
IOException
- if there is a problem accessing the connectionvoid close()
Copyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.