activemq-cpp-3.9.0
|
Defines the interface for Factories that create Transports or TransportFilters. More...
#include <src/main/activemq/transport/TransportFactory.h>
Public Member Functions | |
virtual | ~TransportFactory () |
virtual Pointer< Transport > | create (const decaf::net::URI &location)=0 |
Creates a fully configured Transport instance which could be a chain of filters and transports. More... | |
virtual Pointer< Transport > | createComposite (const decaf::net::URI &location)=0 |
Creates a slimed down Transport instance which can be used in composite transport instances. More... | |
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.
|
inlinevirtual |
|
pure virtual |
Creates a fully configured Transport instance which could be a chain of filters and transports.
location | - URI location to connect to plus any properties to assign. |
ActiveMQexception | if an error occurs |
Implemented in activemq::transport::failover::FailoverTransportFactory, activemq::transport::mock::MockTransportFactory, and activemq::transport::tcp::TcpTransportFactory.
|
pure virtual |
Creates a slimed down Transport instance which can be used in composite transport instances.
location | - URI location to connect to plus any properties to assign. |
ActiveMQexception | if an error occurs |
Implemented in activemq::transport::mock::MockTransportFactory, activemq::transport::failover::FailoverTransportFactory, and activemq::transport::tcp::TcpTransportFactory.