C# Class Carrot.Broker

Inheritance: IBroker
Exibir arquivo Open project: naighes/Carrot

Public Methods

Method 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

Protected Methods

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

Private Methods

Method 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 method

protected Broker ( Carrot.Configuration.EnvironmentConfiguration configuration, IConnectionBuilder connectionBuilder ) : System
configuration Carrot.Configuration.EnvironmentConfiguration
connectionBuilder IConnectionBuilder
return System

Connect() public method

public Connect ( ) : IConnection
return IConnection

CreateInboundModel() protected method

protected CreateInboundModel ( RabbitMQ connection, UInt32 prefetchSize, UInt16 prefetchCount ) : IModel
connection RabbitMQ
prefetchSize System.UInt32
prefetchCount System.UInt16
return IModel

DeclareDirectExchange() public method

public DeclareDirectExchange ( String name ) : Carrot.Exchange
name String
return Carrot.Exchange

DeclareDurableDirectExchange() public method

public DeclareDurableDirectExchange ( String name ) : Carrot.Exchange
name String
return Carrot.Exchange

DeclareDurableFanoutExchange() public method

public DeclareDurableFanoutExchange ( String name ) : Carrot.Exchange
name String
return Carrot.Exchange

DeclareDurableHeadersExchange() public method

public DeclareDurableHeadersExchange ( String name ) : Carrot.Exchange
name String
return Carrot.Exchange

DeclareDurableQueue() public method

public DeclareDurableQueue ( String name ) : Carrot.Queue
name String
return Carrot.Queue

DeclareDurableTopicExchange() public method

public DeclareDurableTopicExchange ( String name ) : Carrot.Exchange
name String
return Carrot.Exchange

DeclareExchangeBinding() public method

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

DeclareFanoutExchange() public method

public DeclareFanoutExchange ( String name ) : Carrot.Exchange
name String
return Carrot.Exchange

DeclareHeadersExchange() public method

public DeclareHeadersExchange ( String name ) : Carrot.Exchange
name String
return Carrot.Exchange

DeclareQueue() public method

public DeclareQueue ( String name ) : Carrot.Queue
name String
return Carrot.Queue

DeclareTopicExchange() public method

public DeclareTopicExchange ( String name ) : Carrot.Exchange
name String
return Carrot.Exchange

New() public static method

public static New ( Action configure ) : IBroker
configure Action
return IBroker

New() public static method

public static New ( Action configure, IConnectionBuilder connectionBuilder ) : IBroker
configure Action
connectionBuilder IConnectionBuilder
return IBroker

SubscribeByAtLeastOnce() public method

public SubscribeByAtLeastOnce ( Carrot.Queue queue, Action configure ) : void
queue Carrot.Queue
configure Action
return void

SubscribeByAtMostOnce() public method

public SubscribeByAtMostOnce ( Carrot.Queue queue, Action configure ) : void
queue Carrot.Queue
configure Action
return void

TryDeclareExchangeBinding() public method

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