Table of Contents

Interface IConnectionFactory

Namespace
Steeltoe.Messaging.RabbitMQ.Connection
Assembly
Steeltoe.Messaging.RabbitMQ.dll
public interface IConnectionFactory : IDisposable, IServiceNameAware
Inherited Members

Properties

Host

Gets the host name for the connection factory

string Host { get; }

Property Value

string

IsPublisherConfirms

Gets a value indicating whether if publisher confirms are enabled

bool IsPublisherConfirms { get; }

Property Value

bool

IsPublisherReturns

Gets a value indicating whether if publisher returns are enabled

bool IsPublisherReturns { get; }

Property Value

bool

IsSimplePublisherConfirms

Gets a value indicating whether if simple publisher confirms are enabled

bool IsSimplePublisherConfirms { get; }

Property Value

bool

Port

Gets the port number for this connection factory

int Port { get; }

Property Value

int

PublisherConnectionFactory

Gets the publisher connection factory that will be used;

IConnectionFactory PublisherConnectionFactory { get; }

Property Value

IConnectionFactory

Username

Gets the user name for the connection factory

string Username { get; }

Property Value

string

VirtualHost

Gets the virtual host name for the connection factory

string VirtualHost { get; }

Property Value

string

Methods

AddConnectionListener(IConnectionListener)

Add a connection listener to this factory

void AddConnectionListener(IConnectionListener connectionListener)

Parameters

connectionListener IConnectionListener

the listener to add

ClearConnectionListeners()

Remove all connection listeners

void ClearConnectionListeners()

CreateConnection()

Create a connection

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

void Destroy()

RemoveConnectionListener(IConnectionListener)

Remove a connection facotry from this factory

bool RemoveConnectionListener(IConnectionListener connectionListener)

Parameters

connectionListener IConnectionListener

the listener to remove

Returns

bool

true if removed