C# Класс Carrot.Broker

Наследование: IBroker
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Broker ( Carrot.Configuration.EnvironmentConfiguration configuration, IConnectionBuilder connectionBuilder ) : System
CreateInboundModel ( RabbitMQ connection, UInt32 prefetchSize, UInt16 prefetchCount ) : IModel

Приватные методы

Метод Описание
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

Описание методов

Broker() защищенный Метод

protected Broker ( Carrot.Configuration.EnvironmentConfiguration configuration, IConnectionBuilder connectionBuilder ) : System
configuration Carrot.Configuration.EnvironmentConfiguration
connectionBuilder IConnectionBuilder
Результат System

Connect() публичный Метод

public Connect ( ) : IConnection
Результат IConnection

CreateInboundModel() защищенный Метод

protected CreateInboundModel ( RabbitMQ connection, UInt32 prefetchSize, UInt16 prefetchCount ) : IModel
connection RabbitMQ
prefetchSize System.UInt32
prefetchCount System.UInt16
Результат IModel

DeclareDirectExchange() публичный Метод

public DeclareDirectExchange ( String name ) : Carrot.Exchange
name String
Результат Carrot.Exchange

DeclareDurableDirectExchange() публичный Метод

public DeclareDurableDirectExchange ( String name ) : Carrot.Exchange
name String
Результат Carrot.Exchange

DeclareDurableFanoutExchange() публичный Метод

public DeclareDurableFanoutExchange ( String name ) : Carrot.Exchange
name String
Результат Carrot.Exchange

DeclareDurableHeadersExchange() публичный Метод

public DeclareDurableHeadersExchange ( String name ) : Carrot.Exchange
name String
Результат Carrot.Exchange

DeclareDurableQueue() публичный Метод

public DeclareDurableQueue ( String name ) : Carrot.Queue
name String
Результат Carrot.Queue

DeclareDurableTopicExchange() публичный Метод

public DeclareDurableTopicExchange ( String name ) : Carrot.Exchange
name String
Результат Carrot.Exchange

DeclareExchangeBinding() публичный Метод

public DeclareExchangeBinding ( Carrot.Exchange exchange, Carrot.Queue queue, String routingKey = "" ) : void
exchange Carrot.Exchange
queue Carrot.Queue
routingKey String
Результат void

DeclareFanoutExchange() публичный Метод

public DeclareFanoutExchange ( String name ) : Carrot.Exchange
name String
Результат Carrot.Exchange

DeclareHeadersExchange() публичный Метод

public DeclareHeadersExchange ( String name ) : Carrot.Exchange
name String
Результат Carrot.Exchange

DeclareQueue() публичный Метод

public DeclareQueue ( String name ) : Carrot.Queue
name String
Результат Carrot.Queue

DeclareTopicExchange() публичный Метод

public DeclareTopicExchange ( String name ) : Carrot.Exchange
name String
Результат Carrot.Exchange

New() публичный статический Метод

public static New ( Action configure ) : IBroker
configure Action
Результат IBroker

New() публичный статический Метод

public static New ( Action configure, IConnectionBuilder connectionBuilder ) : IBroker
configure Action
connectionBuilder IConnectionBuilder
Результат IBroker

SubscribeByAtLeastOnce() публичный Метод

public SubscribeByAtLeastOnce ( Carrot.Queue queue, Action configure ) : void
queue Carrot.Queue
configure Action
Результат void

SubscribeByAtMostOnce() публичный Метод

public SubscribeByAtMostOnce ( Carrot.Queue queue, Action configure ) : void
queue Carrot.Queue
configure Action
Результат void

TryDeclareExchangeBinding() публичный Метод

public TryDeclareExchangeBinding ( Carrot.Exchange exchange, Carrot.Queue queue, String routingKey = "" ) : System.Boolean
exchange Carrot.Exchange
queue Carrot.Queue
routingKey String
Результат System.Boolean