Class AbstractRoutingConnectionFactory
- Namespace
- Steeltoe.Messaging.RabbitMQ.Connection
- Assembly
- Steeltoe.Messaging.RabbitMQ.dll
public abstract class AbstractRoutingConnectionFactory : IConnectionFactory, IDisposable, IServiceNameAware, IRoutingConnectionFactory
- Inheritance
-
AbstractRoutingConnectionFactory
- Implements
- Derived
- Inherited Members
Properties
DefaultTargetConnectionFactory
public IConnectionFactory DefaultTargetConnectionFactory { get; set; }
Property Value
Host
Gets the host name for the connection factory
public string Host { get; }
Property Value
IsPublisherConfirms
Gets a value indicating whether if publisher confirms are enabled
public bool IsPublisherConfirms { get; }
Property Value
IsPublisherReturns
Gets a value indicating whether if publisher returns are enabled
public bool IsPublisherReturns { get; }
Property Value
IsSimplePublisherConfirms
Gets a value indicating whether if simple publisher confirms are enabled
public bool IsSimplePublisherConfirms { get; }
Property Value
LenientFallback
public bool LenientFallback { get; set; }
Property Value
Port
Gets the port number for this connection factory
public int Port { get; }
Property Value
PublisherConnectionFactory
Gets the publisher connection factory that will be used;
public IConnectionFactory PublisherConnectionFactory { get; }
Property Value
ServiceName
public abstract string ServiceName { get; set; }
Property Value
Username
Gets the user name for the connection factory
public string Username { get; }
Property Value
VirtualHost
Gets the virtual host name for the connection factory
public string VirtualHost { get; }
Property Value
Methods
AddConnectionListener(IConnectionListener)
Add a connection listener to this factory
public virtual void AddConnectionListener(IConnectionListener listener)
Parameters
listener
IConnectionListener
AddTargetConnectionFactory(object, IConnectionFactory)
public virtual void AddTargetConnectionFactory(object key, IConnectionFactory connectionFactory)
Parameters
key
objectconnectionFactory
IConnectionFactory
ClearConnectionListeners()
Remove all connection listeners
public virtual void ClearConnectionListeners()
CreateConnection()
Create a connection
public virtual IConnection CreateConnection()
Returns
- IConnection
the connection if successful
Destroy()
Close underlying shared connection. The factory is still able to create new connections after this call
public virtual void Destroy()
DetermineCurrentLookupKey()
public abstract object DetermineCurrentLookupKey()
Returns
DetermineTargetConnectionFactory()
public virtual IConnectionFactory DetermineTargetConnectionFactory()
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
GetTargetConnectionFactory(object)
Returns the ConnectionFactory bound to given lookup key, or null if one does not exist.
public virtual IConnectionFactory GetTargetConnectionFactory(object key)
Parameters
key
objectthe lookup key to which the factory is bound
Returns
- IConnectionFactory
the factory if found
RemoveConnectionListener(IConnectionListener)
Remove a connection facotry from this factory
public virtual bool RemoveConnectionListener(IConnectionListener listener)
Parameters
listener
IConnectionListener
Returns
- bool
true if removed
RemoveTargetConnectionFactory(object)
public virtual IConnectionFactory RemoveTargetConnectionFactory(object key)
Parameters
key
object
Returns
SetTargetConnectionFactories(Dictionary<object, IConnectionFactory>)
public virtual void SetTargetConnectionFactories(Dictionary<object, IConnectionFactory> targetConnectionFactories)
Parameters
targetConnectionFactories
Dictionary<object, IConnectionFactory>