C# Class RabbitMQ.Client.Framing.Impl.AutorecoveringConnection

Inheritance: IConnection, IRecoverable
Show file Open project: rabbitmq/rabbitmq-dotnet-client Class Usage Examples

Public Properties

Property Type Description
m_eventLock object
m_recordedEntitiesLock object
manuallyClosedLock object

Protected Properties

Property Type Description
m_delegate Connection
m_factory ConnectionFactory
m_models List
m_recordedBindings byte>.IDictionary
m_recordedBlockedEventHandlers List>
m_recordedConsumers RecordedConsumer>.IDictionary
m_recordedExchanges RecordedExchange>.IDictionary
m_recordedQueues RecordedQueue>.IDictionary
m_recordedShutdownEventHandlers List>
m_recordedUnblockedEventHandlers List>
manuallyClosed bool
performingRecovery bool
recoveryLockTarget object
recoveryTaskFactory TaskFactory

Private Properties

Property Type Description
IDisposable void
Init void

Public Methods

Method Description
Abort ( ) : void

API-side invocation of connection abort.

Abort ( int timeout ) : void

API-side invocation of connection abort with timeout.

Abort ( ushort reasonCode, string reasonText ) : void

API-side invocation of connection abort.

Abort ( ushort reasonCode, string reasonText, int timeout ) : void

API-side invocation of connection abort with timeout.

AutorecoveringConnection ( ConnectionFactory factory, string clientProvidedName = null ) : System
BeginAutomaticRecovery ( ) : void
Close ( ) : void

API-side invocation of connection.close.

Close ( ShutdownEventArgs reason ) : void
Close ( int timeout ) : void

API-side invocation of connection.close with timeout.

Close ( ushort reasonCode, string reasonText ) : void

API-side invocation of connection.close.

Close ( ushort reasonCode, string reasonText, int timeout ) : void

API-side invocation of connection.close with timeout.

CreateModel ( ) : IModel
CreateNonRecoveringModel ( ) : RecoveryAwareModel
DeleteRecordedBinding ( RabbitMQ.Client.Impl.RecordedBinding rb ) : void
DeleteRecordedConsumer ( string consumerTag ) : RecordedConsumer
DeleteRecordedExchange ( string name ) : void
DeleteRecordedQueue ( string name ) : void
HandleConnectionBlocked ( string reason ) : void
HandleConnectionUnblocked ( ) : void
HasMoreConsumersOnQueue ( ICollection consumers, string queue ) : bool
HasMoreDestinationsBoundToExchange ( ICollection bindings, string exchange ) : bool
Init ( ) : void
Init ( IEndpointResolver endpoints ) : void
MaybeDeleteRecordedAutoDeleteExchange ( string exchange ) : void
MaybeDeleteRecordedAutoDeleteQueue ( string queue ) : void
RecordBinding ( RabbitMQ.Client.Impl.RecordedBinding rb ) : void
RecordConsumer ( string name, RecordedConsumer c ) : void
RecordExchange ( string name, RabbitMQ.Client.Impl.RecordedExchange x ) : void
RecordQueue ( string name, RabbitMQ.Client.Impl.RecordedQueue q ) : void
ToString ( ) : string
UnregisterModel ( AutorecoveringModel model ) : void

Protected Methods

Method Description
EnsureIsOpen ( ) : void
HandleTopologyRecoveryException ( TopologyRecoveryException e ) : void
PerformAutomaticRecovery ( ) : void
PropagateQueueNameChangeToBindings ( string oldName, string newName ) : void
PropagateQueueNameChangeToConsumers ( string oldName, string newName ) : void
RecoverBindings ( ) : void
RecoverConnectionBlockedHandlers ( ) : void
RecoverConnectionDelegate ( ) : bool
RecoverConnectionShutdownHandlers ( ) : void
RecoverConnectionUnblockedHandlers ( ) : void
RecoverConsumers ( ) : void
RecoverEntities ( ) : void
RecoverExchanges ( ) : void
RecoverModels ( ) : void
RecoverQueues ( ) : void
RunRecoveryEventHandlers ( ) : void
ShouldTriggerConnectionRecovery ( ShutdownEventArgs args ) : bool

Private Methods

Method Description
IDisposable ( ) : void
Init ( IFrameHandler fh ) : void

Method Details

Abort() public method

API-side invocation of connection abort.
public Abort ( ) : void
return void

Abort() public method

API-side invocation of connection abort with timeout.
public Abort ( int timeout ) : void
timeout int
return void

Abort() public method

API-side invocation of connection abort.
public Abort ( ushort reasonCode, string reasonText ) : void
reasonCode ushort
reasonText string
return void

Abort() public method

API-side invocation of connection abort with timeout.
public Abort ( ushort reasonCode, string reasonText, int timeout ) : void
reasonCode ushort
reasonText string
timeout int
return void

AutorecoveringConnection() public method

public AutorecoveringConnection ( ConnectionFactory factory, string clientProvidedName = null ) : System
factory ConnectionFactory
clientProvidedName string
return System

BeginAutomaticRecovery() public method

public BeginAutomaticRecovery ( ) : void
return void

Close() public method

API-side invocation of connection.close.
public Close ( ) : void
return void

Close() public method

public Close ( ShutdownEventArgs reason ) : void
reason ShutdownEventArgs
return void

Close() public method

API-side invocation of connection.close with timeout.
public Close ( int timeout ) : void
timeout int
return void

Close() public method

API-side invocation of connection.close.
public Close ( ushort reasonCode, string reasonText ) : void
reasonCode ushort
reasonText string
return void

Close() public method

API-side invocation of connection.close with timeout.
public Close ( ushort reasonCode, string reasonText, int timeout ) : void
reasonCode ushort
reasonText string
timeout int
return void

CreateModel() public method

public CreateModel ( ) : IModel
return IModel

CreateNonRecoveringModel() public method

public CreateNonRecoveringModel ( ) : RecoveryAwareModel
return RabbitMQ.Client.Impl.RecoveryAwareModel

DeleteRecordedBinding() public method

public DeleteRecordedBinding ( RabbitMQ.Client.Impl.RecordedBinding rb ) : void
rb RabbitMQ.Client.Impl.RecordedBinding
return void

DeleteRecordedConsumer() public method

public DeleteRecordedConsumer ( string consumerTag ) : RecordedConsumer
consumerTag string
return RabbitMQ.Client.Impl.RecordedConsumer

DeleteRecordedExchange() public method

public DeleteRecordedExchange ( string name ) : void
name string
return void

DeleteRecordedQueue() public method

public DeleteRecordedQueue ( string name ) : void
name string
return void

EnsureIsOpen() protected method

protected EnsureIsOpen ( ) : void
return void

HandleConnectionBlocked() public method

public HandleConnectionBlocked ( string reason ) : void
reason string
return void

HandleConnectionUnblocked() public method

public HandleConnectionUnblocked ( ) : void
return void

HandleTopologyRecoveryException() protected method

protected HandleTopologyRecoveryException ( TopologyRecoveryException e ) : void
e TopologyRecoveryException
return void

HasMoreConsumersOnQueue() public method

public HasMoreConsumersOnQueue ( ICollection consumers, string queue ) : bool
consumers ICollection
queue string
return bool

HasMoreDestinationsBoundToExchange() public method

public HasMoreDestinationsBoundToExchange ( ICollection bindings, string exchange ) : bool
bindings ICollection
exchange string
return bool

Init() public method

public Init ( ) : void
return void

Init() public method

public Init ( IEndpointResolver endpoints ) : void
endpoints IEndpointResolver
return void

MaybeDeleteRecordedAutoDeleteExchange() public method

public MaybeDeleteRecordedAutoDeleteExchange ( string exchange ) : void
exchange string
return void

MaybeDeleteRecordedAutoDeleteQueue() public method

public MaybeDeleteRecordedAutoDeleteQueue ( string queue ) : void
queue string
return void

PerformAutomaticRecovery() protected method

protected PerformAutomaticRecovery ( ) : void
return void

PropagateQueueNameChangeToBindings() protected method

protected PropagateQueueNameChangeToBindings ( string oldName, string newName ) : void
oldName string
newName string
return void

PropagateQueueNameChangeToConsumers() protected method

protected PropagateQueueNameChangeToConsumers ( string oldName, string newName ) : void
oldName string
newName string
return void

RecordBinding() public method

public RecordBinding ( RabbitMQ.Client.Impl.RecordedBinding rb ) : void
rb RabbitMQ.Client.Impl.RecordedBinding
return void

RecordConsumer() public method

public RecordConsumer ( string name, RecordedConsumer c ) : void
name string
c RabbitMQ.Client.Impl.RecordedConsumer
return void

RecordExchange() public method

public RecordExchange ( string name, RabbitMQ.Client.Impl.RecordedExchange x ) : void
name string
x RabbitMQ.Client.Impl.RecordedExchange
return void

RecordQueue() public method

public RecordQueue ( string name, RabbitMQ.Client.Impl.RecordedQueue q ) : void
name string
q RabbitMQ.Client.Impl.RecordedQueue
return void

RecoverBindings() protected method

protected RecoverBindings ( ) : void
return void

RecoverConnectionBlockedHandlers() protected method

protected RecoverConnectionBlockedHandlers ( ) : void
return void

RecoverConnectionDelegate() protected method

protected RecoverConnectionDelegate ( ) : bool
return bool

RecoverConnectionShutdownHandlers() protected method

protected RecoverConnectionShutdownHandlers ( ) : void
return void

RecoverConnectionUnblockedHandlers() protected method

protected RecoverConnectionUnblockedHandlers ( ) : void
return void

RecoverConsumers() protected method

protected RecoverConsumers ( ) : void
return void

RecoverEntities() protected method

protected RecoverEntities ( ) : void
return void

RecoverExchanges() protected method

protected RecoverExchanges ( ) : void
return void

RecoverModels() protected method

protected RecoverModels ( ) : void
return void

RecoverQueues() protected method

protected RecoverQueues ( ) : void
return void

RunRecoveryEventHandlers() protected method

protected RunRecoveryEventHandlers ( ) : void
return void

ShouldTriggerConnectionRecovery() protected method

protected ShouldTriggerConnectionRecovery ( ShutdownEventArgs args ) : bool
args ShutdownEventArgs
return bool

ToString() public method

public ToString ( ) : string
return string

UnregisterModel() public method

public UnregisterModel ( AutorecoveringModel model ) : void
model AutorecoveringModel
return void

Property Details

m_delegate protected property

protected Connection m_delegate
return Connection

m_eventLock public property

public object m_eventLock
return object

m_factory protected property

protected ConnectionFactory m_factory
return ConnectionFactory

m_models protected property

protected List m_models
return List

m_recordedBindings protected property

protected IDictionary m_recordedBindings
return byte>.IDictionary

m_recordedBlockedEventHandlers protected property

protected List> m_recordedBlockedEventHandlers
return List>

m_recordedConsumers protected property

protected IDictionary m_recordedConsumers
return RecordedConsumer>.IDictionary

m_recordedEntitiesLock public property

public object m_recordedEntitiesLock
return object

m_recordedExchanges protected property

protected IDictionary m_recordedExchanges
return RecordedExchange>.IDictionary

m_recordedQueues protected property

protected IDictionary m_recordedQueues
return RecordedQueue>.IDictionary

m_recordedShutdownEventHandlers protected property

protected List> m_recordedShutdownEventHandlers
return List>

m_recordedUnblockedEventHandlers protected property

protected List> m_recordedUnblockedEventHandlers
return List>

manuallyClosed protected property

protected bool manuallyClosed
return bool

manuallyClosedLock public property

public object manuallyClosedLock
return object

performingRecovery protected property

protected bool performingRecovery
return bool

recoveryLockTarget protected property

protected object recoveryLockTarget
return object

recoveryTaskFactory protected property

protected TaskFactory recoveryTaskFactory
return TaskFactory