activemq-cpp-3.9.0
activemq::transport::TransportFactory Class Referenceabstract

Defines the interface for Factories that create Transports or TransportFilters. More...

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

Inheritance diagram for activemq::transport::TransportFactory:

Public Member Functions

virtual ~TransportFactory ()
 
virtual Pointer< Transportcreate (const decaf::net::URI &location)=0
 Creates a fully configured Transport instance which could be a chain of filters and transports. More...
 
virtual Pointer< TransportcreateComposite (const decaf::net::URI &location)=0
 Creates a slimed down Transport instance which can be used in composite transport instances. More...
 

Detailed Description

Defines the interface for Factories that create Transports or TransportFilters.

The factory should be able to create either a completely configured Transport meaning that it has all the appropriate filters wrapping it, or it should be able to create a slimed down version that is used in composite transports like Failover or Fanout.

Since
3.0

Constructor & Destructor Documentation

virtual activemq::transport::TransportFactory::~TransportFactory ( )
inlinevirtual

Member Function Documentation

virtual Pointer<Transport> activemq::transport::TransportFactory::create ( const decaf::net::URI location)
pure virtual

Creates a fully configured Transport instance which could be a chain of filters and transports.

Parameters
location- URI location to connect to plus any properties to assign.
Exceptions
ActiveMQexceptionif an error occurs

Implemented in activemq::transport::failover::FailoverTransportFactory, activemq::transport::mock::MockTransportFactory, and activemq::transport::tcp::TcpTransportFactory.

virtual Pointer<Transport> activemq::transport::TransportFactory::createComposite ( const decaf::net::URI location)
pure virtual

Creates a slimed down Transport instance which can be used in composite transport instances.

Parameters
location- URI location to connect to plus any properties to assign.
Exceptions
ActiveMQexceptionif an error occurs

Implemented in activemq::transport::mock::MockTransportFactory, activemq::transport::failover::FailoverTransportFactory, and activemq::transport::tcp::TcpTransportFactory.


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