Class RabbitAdmin
[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
public class RabbitAdmin : IRabbitAdmin, IServiceNameAware, IConnectionListener
- Inheritance
-
RabbitAdmin
- Implements
- Inherited Members
Constructors
RabbitAdmin(IApplicationContext, IConnectionFactory, ILogger)
[ActivatorUtilitiesConstructor]
public RabbitAdmin(IApplicationContext applicationContext, IConnectionFactory connectionFactory, ILogger logger = null)
Parameters
applicationContextIApplicationContextconnectionFactoryIConnectionFactoryloggerILogger
RabbitAdmin(IConnectionFactory, ILogger)
public RabbitAdmin(IConnectionFactory connectionFactory, ILogger logger = null)
Parameters
connectionFactoryIConnectionFactoryloggerILogger
RabbitAdmin(RabbitTemplate, ILogger)
public RabbitAdmin(RabbitTemplate template, ILogger logger = null)
Parameters
templateRabbitTemplateloggerILogger
Fields
DEFAULT_SERVICE_NAME
public const string DEFAULT_SERVICE_NAME = "rabbitAdmin"
Field Value
QUEUE_CONSUMER_COUNT
public const string QUEUE_CONSUMER_COUNT = "QUEUE_CONSUMER_COUNT"
Field Value
QUEUE_MESSAGE_COUNT
public const string QUEUE_MESSAGE_COUNT = "QUEUE_MESSAGE_COUNT"
Field Value
QUEUE_NAME
public const string QUEUE_NAME = "QUEUE_NAME"
Field Value
Properties
ApplicationContext
public IApplicationContext ApplicationContext { get; set; }
Property Value
AutoStartup
public bool AutoStartup { get; set; }
Property Value
ConnectionFactory
public IConnectionFactory ConnectionFactory { get; set; }
Property Value
ExplicitDeclarationsOnly
public bool ExplicitDeclarationsOnly { get; set; }
Property Value
IgnoreDeclarationExceptions
public bool IgnoreDeclarationExceptions { get; set; }
Property Value
IsAutoStartup
public bool IsAutoStartup { get; set; }
Property Value
IsRunning
public bool IsRunning { get; }
Property Value
LastDeclarationExceptionEvent
public DeclarationExceptionEvent LastDeclarationExceptionEvent { get; }
Property Value
RabbitTemplate
public RabbitTemplate RabbitTemplate { get; }
Property Value
RetryDisabled
public bool RetryDisabled { get; set; }
Property Value
RetryTemplate
public RetryTemplate RetryTemplate { get; set; }
Property Value
ServiceName
public string ServiceName { get; set; }
Property Value
Methods
DeclareBinding(IBinding)
public void DeclareBinding(IBinding binding)
Parameters
bindingIBinding
DeclareExchange(IExchange)
public void DeclareExchange(IExchange exchange)
Parameters
exchangeIExchange
DeclareQueue()
public IQueue DeclareQueue()
Returns
DeclareQueue(IQueue)
public string DeclareQueue(IQueue queue)
Parameters
queueIQueue
Returns
DeleteExchange(string)
public bool DeleteExchange(string exchangeName)
Parameters
exchangeNamestring
Returns
DeleteQueue(string)
public bool DeleteQueue(string queueName)
Parameters
queueNamestring
Returns
DeleteQueue(string, bool, bool)
public void DeleteQueue(string queueName, bool unused, bool empty)
Parameters
GetQueueInfo(string)
public QueueInformation GetQueueInfo(string queueName)
Parameters
queueNamestring
Returns
GetQueueProperties(string)
public Dictionary<string, object> GetQueueProperties(string queueName)
Parameters
queueNamestring
Returns
Initialize()
public void Initialize()
OnClose(IConnection)
Called when connection is closed
public void OnClose(IConnection connection)
Parameters
connectionIConnectionthe connection
OnCreate(IConnection)
Called when a new connection is established
public void OnCreate(IConnection connection)
Parameters
connectionIConnectionthe connection
OnShutDown(ShutdownEventArgs)
Called when connection is forced to close
public void OnShutDown(ShutdownEventArgs args)
Parameters
argsShutdownEventArgsthe event
PurgeQueue(string)
public uint PurgeQueue(string queueName)
Parameters
queueNamestring
Returns
PurgeQueue(string, bool)
public void PurgeQueue(string queueName, bool noWait)
Parameters
RemoveBinding(IBinding)
public void RemoveBinding(IBinding binding)
Parameters
bindingIBinding