|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
C - application supplied contextpublic interface Connector<C>
Intermediates between a proton engine Connection and the I/O
layer.
The top half of the engine can be access via getConnection().
The bottom half of the engine is used by process().
Stores application specific context using setContext(Object).
Implementations are not necessarily thread-safe.
| Method Summary | |
|---|---|
void |
close()
Close the socket used by the connector. |
void |
destroy()
Destructor for the given connector. |
Connection |
getConnection()
Access the AMQP Connection associated with the connector. |
C |
getContext()
Access the application context that is associated with the connector. |
boolean |
isClosed()
Determine if the connector is closed. |
Listener |
listener()
Access the listener which opened this connector. |
boolean |
process()
Handle any inbound data, outbound data, or timing events pending on the connector. |
Sasl |
sasl()
Access the Authentication and Security context of the connector. |
void |
setConnection(Connection connection)
Assign the AMQP Connection associated with the connector. |
void |
setContext(C context)
Assign a new application context to the connector. |
| Method Detail |
|---|
boolean process()
throws IOException
IOExceptionListener listener()
Sasl sasl()
Connection getConnection()
void setConnection(Connection connection)
connection - the connection to associate with the connector.C getContext()
createConnector(String, int, Object) and
createConnector(java.nio.channels.SelectableChannel, Object).void setContext(C context)
context - new application context to associate with the connectorvoid close()
boolean isClosed()
void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||