|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FrameHandler
Interface to a frame handler.
Concurrency
Method Summary | |
---|---|
void |
close()
Close the underlying data connection (complaint not permitted). |
void |
flush()
Flush the underlying data connection. |
java.net.InetAddress |
getAddress()
Retrieve address of peer. |
int |
getPort()
Retrieve port number of peer. |
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. |
Method Detail |
---|
java.net.InetAddress getAddress()
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
- 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 connection
java.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 transmit
java.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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |