activemq::transport::Transport Class Reference

#include <Transport.h>

Inheritance diagram for activemq::transport::Transport:

activemq::transport::IOTransport activemq::transport::TransportFilter activemq::transport::ResponseCorrelator activemq::transport::TcpTransport List of all members.

Public Member Functions

virtual ~Transport ()
virtual void oneway (Command *command)=0 throw ( CommandIOException, exceptions::UnsupportedOperationException )
virtual Responserequest (Command *command)=0 throw ( CommandIOException, exceptions::UnsupportedOperationException )
virtual void setCommandListener (CommandListener *listener)=0
virtual void setCommandReader (CommandReader *reader)=0
virtual void setCommandWriter (CommandWriter *writer)=0
virtual void setTransportExceptionListener (TransportExceptionListener *listener)=0

Detailed Description

Interface for a transport layer for command objects. Callers can send oneway messages or make synchronous requests. Non-response messages will be delivered to the specified listener object upon receipt.


Constructor & Destructor Documentation

virtual activemq::transport::Transport::~Transport  )  [inline, virtual]
 


Member Function Documentation

virtual void activemq::transport::Transport::oneway Command command  )  throw ( CommandIOException, exceptions::UnsupportedOperationException ) [pure virtual]
 

Sends a one-way command. Does not wait for any response from the broker.

Parameters:
command the command to be sent.
Exceptions:
CommandIOException if an exception occurs during writing of the command.
UnsupportedOperationException if this method is not implemented by this transport.

Implemented in activemq::transport::IOTransport, activemq::transport::ResponseCorrelator, and activemq::transport::TransportFilter.

virtual Response* activemq::transport::Transport::request Command command  )  throw ( CommandIOException, exceptions::UnsupportedOperationException ) [pure virtual]
 

Sends the given command to the broker and then waits for the response.

Parameters:
command the command to be sent.
Returns:
the response from the broker.
Exceptions:
CommandIOException if an exception occurs during the read of the command.
UnsupportedOperationException if this method is not implemented by this transport.

Implemented in activemq::transport::IOTransport, activemq::transport::ResponseCorrelator, and activemq::transport::TransportFilter.

virtual void activemq::transport::Transport::setCommandListener CommandListener listener  )  [pure virtual]
 

Assigns the command listener for non-response commands.

Parameters:
listener the listener.

Implemented in activemq::transport::IOTransport, activemq::transport::ResponseCorrelator, and activemq::transport::TransportFilter.

virtual void activemq::transport::Transport::setCommandReader CommandReader reader  )  [pure virtual]
 

Sets the command reader.

Parameters:
reader the object that will be used for reading command objects.

Implemented in activemq::transport::IOTransport, and activemq::transport::TransportFilter.

virtual void activemq::transport::Transport::setCommandWriter CommandWriter writer  )  [pure virtual]
 

Sets the command writer.

Parameters:
writer the object that will be used for writing command objects.

Implemented in activemq::transport::IOTransport, and activemq::transport::TransportFilter.

virtual void activemq::transport::Transport::setTransportExceptionListener TransportExceptionListener listener  )  [pure virtual]
 

Sets the observer of asynchronous exceptions from this transport.

Parameters:
listener the listener of transport exceptions.

Implemented in activemq::transport::IOTransport, activemq::transport::ResponseCorrelator, and activemq::transport::TransportFilter.


The documentation for this class was generated from the following file:
Generated on Thu Aug 3 18:03:33 2006 for activemq-cpp by  doxygen 1.4.5