C# Class Carrot.Broker

Inheritance: IBroker
Afficher le fichier Open project: naighes/Carrot

Méthodes publiques

Méthode Description
Connect ( ) : IConnection
DeclareDirectExchange ( String name ) : Carrot.Exchange
DeclareDurableDirectExchange ( String name ) : Carrot.Exchange
DeclareDurableFanoutExchange ( String name ) : Carrot.Exchange
DeclareDurableHeadersExchange ( String name ) : Carrot.Exchange
DeclareDurableQueue ( String name ) : Carrot.Queue
DeclareDurableTopicExchange ( String name ) : Carrot.Exchange
DeclareExchangeBinding ( Carrot.Exchange exchange, Carrot.Queue queue, String routingKey = "" ) : void
DeclareFanoutExchange ( String name ) : Carrot.Exchange
DeclareHeadersExchange ( String name ) : Carrot.Exchange
DeclareQueue ( String name ) : Carrot.Queue
DeclareTopicExchange ( String name ) : Carrot.Exchange
New ( Action configure ) : IBroker
New ( Action configure, IConnectionBuilder connectionBuilder ) : IBroker
SubscribeByAtLeastOnce ( Carrot.Queue queue, Action configure ) : void
SubscribeByAtMostOnce ( Carrot.Queue queue, Action configure ) : void
TryDeclareExchangeBinding ( Carrot.Exchange exchange, Carrot.Queue queue, String routingKey = "" ) : System.Boolean

Méthodes protégées

Méthode Description
Broker ( Carrot.Configuration.EnvironmentConfiguration configuration, IConnectionBuilder connectionBuilder ) : System
CreateInboundModel ( RabbitMQ connection, UInt32 prefetchSize, UInt16 prefetchCount ) : IModel

Private Methods

Méthode Description
ApplyEntitiesDeclarations ( IModel outboundModel ) : void
CreateConnection ( RabbitMQ connection, IModel outboundModel ) : IConnection
DeclareExchange ( String name, String type, System.Boolean isDurable ) : Carrot.Exchange
DeclareQueue ( String name, System.Boolean isDurable ) : Carrot.Queue
Subscribe ( Action configure, Func func, Carrot.Queue queue ) : void

Method Details

Broker() protected méthode

protected Broker ( Carrot.Configuration.EnvironmentConfiguration configuration, IConnectionBuilder connectionBuilder ) : System
configuration Carrot.Configuration.EnvironmentConfiguration
connectionBuilder IConnectionBuilder
Résultat System

Connect() public méthode

public Connect ( ) : IConnection
Résultat IConnection

CreateInboundModel() protected méthode

protected CreateInboundModel ( RabbitMQ connection, UInt32 prefetchSize, UInt16 prefetchCount ) : IModel
connection RabbitMQ
prefetchSize System.UInt32
prefetchCount System.UInt16
Résultat IModel

DeclareDirectExchange() public méthode

public DeclareDirectExchange ( String name ) : Carrot.Exchange
name String
Résultat Carrot.Exchange

DeclareDurableDirectExchange() public méthode

public DeclareDurableDirectExchange ( String name ) : Carrot.Exchange
name String
Résultat Carrot.Exchange

DeclareDurableFanoutExchange() public méthode

public DeclareDurableFanoutExchange ( String name ) : Carrot.Exchange
name String
Résultat Carrot.Exchange

DeclareDurableHeadersExchange() public méthode

public DeclareDurableHeadersExchange ( String name ) : Carrot.Exchange
name String
Résultat Carrot.Exchange

DeclareDurableQueue() public méthode

public DeclareDurableQueue ( String name ) : Carrot.Queue
name String
Résultat Carrot.Queue

DeclareDurableTopicExchange() public méthode

public DeclareDurableTopicExchange ( String name ) : Carrot.Exchange
name String
Résultat Carrot.Exchange

DeclareExchangeBinding() public méthode

public DeclareExchangeBinding ( Carrot.Exchange exchange, Carrot.Queue queue, String routingKey = "" ) : void
exchange Carrot.Exchange
queue Carrot.Queue
routingKey String
Résultat void

DeclareFanoutExchange() public méthode

public DeclareFanoutExchange ( String name ) : Carrot.Exchange
name String
Résultat Carrot.Exchange

DeclareHeadersExchange() public méthode

public DeclareHeadersExchange ( String name ) : Carrot.Exchange
name String
Résultat Carrot.Exchange

DeclareQueue() public méthode

public DeclareQueue ( String name ) : Carrot.Queue
name String
Résultat Carrot.Queue

DeclareTopicExchange() public méthode

public DeclareTopicExchange ( String name ) : Carrot.Exchange
name String
Résultat Carrot.Exchange

New() public static méthode

public static New ( Action configure ) : IBroker
configure Action
Résultat IBroker

New() public static méthode

public static New ( Action configure, IConnectionBuilder connectionBuilder ) : IBroker
configure Action
connectionBuilder IConnectionBuilder
Résultat IBroker

SubscribeByAtLeastOnce() public méthode

public SubscribeByAtLeastOnce ( Carrot.Queue queue, Action configure ) : void
queue Carrot.Queue
configure Action
Résultat void

SubscribeByAtMostOnce() public méthode

public SubscribeByAtMostOnce ( Carrot.Queue queue, Action configure ) : void
queue Carrot.Queue
configure Action
Résultat void

TryDeclareExchangeBinding() public méthode

public TryDeclareExchangeBinding ( Carrot.Exchange exchange, Carrot.Queue queue, String routingKey = "" ) : System.Boolean
exchange Carrot.Exchange
queue Carrot.Queue
routingKey String
Résultat System.Boolean