activemq-cpp-3.6.0
activemq::transport::CompositeTransport Class Reference

A Composite Transport is a Transport implementation that is composed of several Transports. More...

#include <src/main/activemq/transport/CompositeTransport.h>

Inheritance diagram for activemq::transport::CompositeTransport:

Public Member Functions

virtual ~CompositeTransport ()
virtual void addURI (bool rebalance, const List< URI > &uris)=0
 Add a URI to the list of URI's that will represent the set of Transports that this Transport is a composite of.
virtual void removeURI (bool rebalance, const List< URI > &uris)=0
 Remove a URI from the set of URI's that represents the set of Transports that this Transport is composed of, removing a URI for which the composite has created a connected Transport should result in that Transport being disposed of.
- Public Member Functions inherited from activemq::transport::Transport
virtual ~Transport ()
virtual void start ()=0
 Starts the Transport, the send methods of a Transport will throw an exception if used before the Transport is started.
virtual void stop ()=0
 Stops the Transport.
virtual void oneway (const Pointer< Command > command)=0
 Sends a one-way command.
virtual Pointer< FutureResponseasyncRequest (const Pointer< Command > command, const Pointer< ResponseCallback > responseCallback)=0
 Sends a commands asynchronously, returning a FutureResponse object that the caller can use to check to find out the response from the broker.
virtual Pointer< Responserequest (const Pointer< Command > command)=0
 Sends the given command to the broker and then waits for the response.
virtual Pointer< Responserequest (const Pointer< Command > command, unsigned int timeout)=0
 Sends the given command to the broker and then waits for the response.
virtual Pointer
< wireformat::WireFormat
getWireFormat () const =0
 Gets the WireFormat instance that is in use by this transport.
virtual void setWireFormat (const Pointer< wireformat::WireFormat > wireFormat)=0
 Sets the WireFormat instance to use.
virtual void setTransportListener (TransportListener *listener)=0
 Sets the observer of asynchronous events from this transport.
virtual TransportListenergetTransportListener () const =0
 Gets the observer of asynchronous events from this transport.
virtual Transportnarrow (const std::type_info &typeId)=0
 Narrows down a Chain of Transports to a specific Transport to allow a higher level transport to skip intermediate Transports in certain circumstances.
virtual bool isFaultTolerant () const =0
 Is this Transport fault tolerant, meaning that it will reconnect to a broker on disconnect.
virtual bool isConnected () const =0
 Is the Transport Connected to its Broker.
virtual bool isClosed () const =0
 Has the Transport been shutdown and no longer usable.
virtual bool isReconnectSupported () const =0
virtual bool isUpdateURIsSupported () const =0
virtual std::string getRemoteAddress () const =0
virtual void reconnect (const decaf::net::URI &uri)=0
 reconnect to another location
virtual void updateURIs (bool rebalance, const decaf::util::List< decaf::net::URI > &uris)=0
 Updates the set of URIs the Transport can connect to.
- Public Member Functions inherited from decaf::io::Closeable
virtual ~Closeable ()
virtual void close ()=0
 Closes this object and deallocates the appropriate resources.

Detailed Description

A Composite Transport is a Transport implementation that is composed of several Transports.

The composition could be such that only one Transport exists for each URI that is composed or there could be many active Transports working at once.

Since
3.0

Constructor & Destructor Documentation

virtual activemq::transport::CompositeTransport::~CompositeTransport ( )
virtual

Member Function Documentation

virtual void activemq::transport::CompositeTransport::addURI ( bool  rebalance,
const List< URI > &  uris 
)
pure virtual

Add a URI to the list of URI's that will represent the set of Transports that this Transport is a composite of.

Parameters
rebalanceIndicates if the addition should cause a forced reconnect or not.
urisThe new URI set to add to the set this composite maintains.

Implemented in activemq::transport::failover::FailoverTransport.

virtual void activemq::transport::CompositeTransport::removeURI ( bool  rebalance,
const List< URI > &  uris 
)
pure virtual

Remove a URI from the set of URI's that represents the set of Transports that this Transport is composed of, removing a URI for which the composite has created a connected Transport should result in that Transport being disposed of.

Parameters
rebalanceIndicates if the removal should cause a forced reconnect or not.
urisThe new URI set to remove to the set this composite maintains.

Implemented in activemq::transport::failover::FailoverTransport.


The documentation for this class was generated from the following file: