|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FrameHandler
Interface to a frame handler.
| Method Summary | |
|---|---|
void |
close()
Close the underlying data connection (complaint not permitted). |
java.lang.String |
getHost()
Retrieve hostname of peer. |
int |
getPort()
Retrieve port number of peer. |
int |
getTimeout()
Get the underlying socket's 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. |
| Method Detail |
|---|
java.lang.String getHost()
int getPort()
void setTimeout(int timeoutMs)
throws java.net.SocketException
timeoutMs - The timeout in milliseconds
java.net.SocketException
int getTimeout()
throws java.net.SocketException
java.net.SocketException
void sendHeader()
throws java.io.IOException
java.io.IOException
Frame readFrame()
throws java.io.IOException
Frame from the underlying data connection.
java.io.IOException - if there is a problem accessing the connection
java.net.SocketTimeoutException - if the underlying read times out
void writeFrame(Frame frame)
throws java.io.IOException
Frame to the underlying data connection.
frame - the Frame to transmit
java.io.IOException - if there is a problem accessing the connectionvoid close()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||