Class QueueChannel
- Namespace
- Steeltoe.Integration.Channel
- Assembly
- Steeltoe.Integration.IntegrationBase.dll
[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
public class QueueChannel : AbstractPollableChannel, IPollableChannel, IMessageChannel, IServiceNameAware, ITaskSchedulerChannelInterceptorAware, IChannelInterceptorAware, IQueueChannelOperations
- Inheritance
-
QueueChannel
- Implements
- Inherited Members
Constructors
QueueChannel(ILogger)
public QueueChannel(ILogger logger = null)
Parameters
loggerILogger
QueueChannel(IApplicationContext, ILogger)
public QueueChannel(IApplicationContext context, ILogger logger = null)
Parameters
contextIApplicationContextloggerILogger
QueueChannel(IApplicationContext, int, ILogger)
public QueueChannel(IApplicationContext context, int capacity, ILogger logger = null)
Parameters
contextIApplicationContextcapacityintloggerILogger
QueueChannel(IApplicationContext, string, ILogger)
public QueueChannel(IApplicationContext context, string name, ILogger logger = null)
Parameters
contextIApplicationContextnamestringloggerILogger
QueueChannel(IApplicationContext, Channel<IMessage>, ILogger)
public QueueChannel(IApplicationContext context, Channel<IMessage> channel, ILogger logger = null)
Parameters
contextIApplicationContextchannelChannel<IMessage>loggerILogger
QueueChannel(IApplicationContext, Channel<IMessage>, string, ILogger)
public QueueChannel(IApplicationContext context, Channel<IMessage> channel, string name, ILogger logger = null)
Parameters
contextIApplicationContextchannelChannel<IMessage>namestringloggerILogger
Properties
QueueSize
Gets the size of the queue
public int QueueSize { get; }
Property Value
RemainingCapacity
Gets the remaining capacity of the queue
public int RemainingCapacity { get; }
Property Value
Methods
Clear()
Clear all items off the quewue
public IList<IMessage> Clear()
Returns
DoReceiveInternal(CancellationToken)
protected override IMessage DoReceiveInternal(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationToken
Returns
DoSendInternal(IMessage, CancellationToken)
protected override bool DoSendInternal(IMessage message, CancellationToken cancellationToken)
Parameters
messageIMessagecancellationTokenCancellationToken
Returns
Purge(IMessageSelector)
Remove any Messages that are not accepted by the provided selector.
public IList<IMessage> Purge(IMessageSelector messageSelector)
Parameters
messageSelectorIMessageSelectorthe selector to apply