Interface IConnectionFactory
Namespace: Steeltoe.Messaging.RabbitMQ.Connection
Assembly: Steeltoe.Messaging.RabbitMQ.dll
Syntax
public interface IConnectionFactory
Properties
| Edit this page View SourceHost
Gets the host name for the connection factory
Declaration
string Host { get; }
Property Value
Type | Description |
---|---|
System.String |
IsPublisherConfirms
Gets a value indicating whether if publisher confirms are enabled
Declaration
bool IsPublisherConfirms { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsPublisherReturns
Gets a value indicating whether if publisher returns are enabled
Declaration
bool IsPublisherReturns { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsSimplePublisherConfirms
Gets a value indicating whether if simple publisher confirms are enabled
Declaration
bool IsSimplePublisherConfirms { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Port
Gets the port number for this connection factory
Declaration
int Port { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
PublisherConnectionFactory
Gets the publisher connection factory that will be used;
Declaration
IConnectionFactory PublisherConnectionFactory { get; }
Property Value
Type | Description |
---|---|
IConnectionFactory |
Username
Gets the user name for the connection factory
Declaration
string Username { get; }
Property Value
Type | Description |
---|---|
System.String |
VirtualHost
Gets the virtual host name for the connection factory
Declaration
string VirtualHost { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Edit this page View SourceAddConnectionListener(IConnectionListener)
Add a connection listener to this factory
Declaration
void AddConnectionListener(IConnectionListener connectionListener)
Parameters
Type | Name | Description |
---|---|---|
IConnectionListener | connectionListener | the listener to add |
ClearConnectionListeners()
Remove all connection listeners
Declaration
void ClearConnectionListeners()
CreateConnection()
Create a connection
Declaration
IConnection CreateConnection()
Returns
Type | Description |
---|---|
IConnection | the connection if successful |
Destroy()
Close underlying shared connection. The factory is still able to create new connections after this call
Declaration
void Destroy()
RemoveConnectionListener(IConnectionListener)
Remove a connection facotry from this factory
Declaration
bool RemoveConnectionListener(IConnectionListener connectionListener)
Parameters
Type | Name | Description |
---|---|---|
IConnectionListener | connectionListener | the listener to remove |
Returns
Type | Description |
---|---|
System.Boolean | true if removed |