Class QueueChannel
- Namespace
- Steeltoe.Integration.Channel
- Assembly
- Steeltoe.Integration.IntegrationBase.dll
public class QueueChannel : AbstractPollableChannel, IPollableChannel, IMessageChannel, IServiceNameAware, ITaskSchedulerChannelInterceptorAware, IChannelInterceptorAware, IQueueChannelOperations
- Inheritance
-
QueueChannel
- Implements
- Inherited Members
Constructors
QueueChannel(ILogger)
public QueueChannel(ILogger logger = null)
Parameters
logger
ILogger
QueueChannel(IApplicationContext, ILogger)
public QueueChannel(IApplicationContext context, ILogger logger = null)
Parameters
context
IApplicationContextlogger
ILogger
QueueChannel(IApplicationContext, int, ILogger)
public QueueChannel(IApplicationContext context, int capacity, ILogger logger = null)
Parameters
context
IApplicationContextcapacity
intlogger
ILogger
QueueChannel(IApplicationContext, string, ILogger)
public QueueChannel(IApplicationContext context, string name, ILogger logger = null)
Parameters
context
IApplicationContextname
stringlogger
ILogger
QueueChannel(IApplicationContext, Channel<IMessage>, ILogger)
public QueueChannel(IApplicationContext context, Channel<IMessage> channel, ILogger logger = null)
Parameters
context
IApplicationContextchannel
Channel<IMessage>logger
ILogger
QueueChannel(IApplicationContext, Channel<IMessage>, string, ILogger)
public QueueChannel(IApplicationContext context, Channel<IMessage> channel, string name, ILogger logger = null)
Parameters
context
IApplicationContextchannel
Channel<IMessage>name
stringlogger
ILogger
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
cancellationToken
CancellationToken
Returns
DoSendInternal(IMessage, CancellationToken)
protected override bool DoSendInternal(IMessage message, CancellationToken cancellationToken)
Parameters
message
IMessagecancellationToken
CancellationToken
Returns
Purge(IMessageSelector)
Remove any Messages that are not accepted by the provided selector.
public IList<IMessage> Purge(IMessageSelector messageSelector)
Parameters
messageSelector
IMessageSelectorthe selector to apply