-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
748ec8c
commit 6d7e576
Showing
22 changed files
with
90 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
namespace RabbitMQ.Client | ||
{ | ||
/// <summary> | ||
/// Channel creation options. | ||
/// </summary> | ||
public sealed class CreateChannelOptions | ||
{ | ||
/// <summary> | ||
/// Enable or disable publisher confirmations on this channel. Defaults to <c>false</c> | ||
/// </summary> | ||
public bool PublisherConfirmationsEnabled { get; set; } = false; | ||
|
||
/// <summary> | ||
/// Should this library track publisher confirmations for you? Defaults to <c>false</c> | ||
/// </summary> | ||
public bool PublisherConfirmationTrackingEnabled { get; set; } = false; | ||
|
||
/// Set to a value greater than one to enable concurrent processing. For a concurrency greater than one <see cref="IAsyncBasicConsumer"/> | ||
/// will be offloaded to the worker thread pool so it is important to choose the value for the concurrency wisely to avoid thread pool overloading. | ||
/// <see cref="IAsyncBasicConsumer"/> can handle concurrency much more efficiently due to the non-blocking nature of the consumer. | ||
/// | ||
/// Defaults to <c>null</c>, which will use the value from <see cref="IConnectionFactory.ConsumerDispatchConcurrency"/> | ||
/// | ||
/// For concurrency greater than one this removes the guarantee that consumers handle messages in the order they receive them. | ||
/// In addition to that consumers need to be thread/concurrency safe. | ||
public ushort? ConsumerDispatchConcurrency { get; set; } = null; | ||
|
||
/// <summary> | ||
/// The default channel options. | ||
/// </summary> | ||
public static CreateChannelOptions Default { get; } = new CreateChannelOptions(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
RabbitMQ.Client.CreateChannelOptions | ||
RabbitMQ.Client.CreateChannelOptions.ConsumerDispatchConcurrency.get -> ushort? | ||
RabbitMQ.Client.CreateChannelOptions.ConsumerDispatchConcurrency.set -> void | ||
RabbitMQ.Client.CreateChannelOptions.CreateChannelOptions() -> void | ||
RabbitMQ.Client.CreateChannelOptions.PublisherConfirmationsEnabled.get -> bool | ||
RabbitMQ.Client.CreateChannelOptions.PublisherConfirmationsEnabled.set -> void | ||
RabbitMQ.Client.CreateChannelOptions.PublisherConfirmationTrackingEnabled.get -> bool | ||
RabbitMQ.Client.CreateChannelOptions.PublisherConfirmationTrackingEnabled.set -> void | ||
RabbitMQ.Client.Exceptions.OperationInterruptedException.OperationInterruptedException(RabbitMQ.Client.Events.ShutdownEventArgs! reason) -> void | ||
RabbitMQ.Client.Exceptions.OperationInterruptedException.OperationInterruptedException(RabbitMQ.Client.Events.ShutdownEventArgs! reason, string! prefix) -> void | ||
RabbitMQ.Client.Exceptions.ProtocolViolationException.ProtocolViolationException() -> void | ||
RabbitMQ.Client.Exceptions.RabbitMQClientException.RabbitMQClientException() -> void | ||
RabbitMQ.Client.IConnection.CreateChannelAsync(bool publisherConfirmationsEnabled = false, bool publisherConfirmationTrackingEnabled = false, ushort? consumerDispatchConcurrency = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<RabbitMQ.Client.IChannel!>! | ||
RabbitMQ.Client.IConnection.CreateChannelAsync(RabbitMQ.Client.CreateChannelOptions? options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<RabbitMQ.Client.IChannel!>! | ||
static RabbitMQ.Client.CreateChannelOptions.Default.get -> RabbitMQ.Client.CreateChannelOptions! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.