#include <TransportFilter.h>
Inheritance diagram for activemq::transport::TransportFilter:
Public Member Functions | |
TransportFilter (Transport *next, const bool own=true) | |
virtual | ~TransportFilter () |
virtual void | onCommand (Command *command) |
virtual void | onTransportException (Transport *source, const exceptions::ActiveMQException &ex) |
virtual void | oneway (Command *command) throw (CommandIOException, exceptions::UnsupportedOperationException) |
virtual Response * | request (Command *command) throw (CommandIOException, exceptions::UnsupportedOperationException) |
virtual void | setCommandListener (CommandListener *listener) |
virtual void | setCommandReader (CommandReader *reader) |
virtual void | setCommandWriter (CommandWriter *writer) |
virtual void | setTransportExceptionListener (TransportExceptionListener *listener) |
virtual void | start () throw ( cms::CMSException ) |
virtual void | close () throw ( cms::CMSException ) |
Protected Member Functions | |
void | fire (const exceptions::ActiveMQException &ex) |
void | fire (Command *command) |
Protected Attributes | |
Transport * | next |
bool | own |
CommandListener * | commandlistener |
TransportExceptionListener * | exceptionListener |
|
Constructor.
|
|
|
|
Stops the polling thread and closes the streams. This can be called explicitly, but is also called in the destructor. Once this object has been closed, it cannot be restarted.
Reimplemented in activemq::transport::ResponseCorrelator. |
|
Notify the command listener.
|
|
Notify the excpetion listener
|
|
Event handler for the receipt of a command.
Implements activemq::transport::CommandListener. Reimplemented in activemq::transport::ResponseCorrelator. |
|
Sends a one-way command. Does not wait for any response from the broker.
Implements activemq::transport::Transport. Reimplemented in activemq::transport::ResponseCorrelator. |
|
Event handler for an exception from a command transport.
Implements activemq::transport::TransportExceptionListener. |
|
Not supported by this class - throws an exception.
Implements activemq::transport::Transport. Reimplemented in activemq::transport::ResponseCorrelator. |
|
Assigns the command listener for non-response commands.
Implements activemq::transport::Transport. Reimplemented in activemq::transport::ResponseCorrelator. |
|
Sets the command reader.
Implements activemq::transport::Transport. |
|
Sets the command writer.
Implements activemq::transport::Transport. |
|
Sets the observer of asynchronous exceptions from this transport.
Implements activemq::transport::Transport. Reimplemented in activemq::transport::ResponseCorrelator. |
|
Starts this transport object and creates the thread for polling on the input stream for commands. If this object has been closed, throws an exception. Before calling start, the caller must set the IO streams and the reader and writer objects.
Reimplemented in activemq::transport::ResponseCorrelator. |
|
Listener to incoming commands. |
|
Listener of exceptions from this transport. |
|
The transport that this filter wraps around. |
|
Flag to indicate whether this object controls the lifetime of the next transport object. |