Interface IPublisherCallbackChannel
- Namespace
- Steeltoe.Messaging.RabbitMQ.Connection
- Assembly
- Steeltoe.Messaging.RabbitMQ.dll
public interface IPublisherCallbackChannel : IModel, IDisposable
- Inherited Members
-
IModel.Abort()IModel.Close()IModel.ConfirmSelect()IModel.CreateBasicPublishBatch()IModel.CreateBasicProperties()IModel.TxCommit()IModel.TxRollback()IModel.TxSelect()IModel.WaitForConfirms()IModel.WaitForConfirmsOrDie()IModel.ChannelNumberIModel.CloseReasonIModel.DefaultConsumerIModel.IsClosedIModel.IsOpenIModel.NextPublishSeqNoIModel.ContinuationTimeoutIModel.BasicAcksIModel.BasicNacksIModel.BasicRecoverOkIModel.BasicReturnIModel.CallbackExceptionIModel.FlowControlIModel.ModelShutdown
Properties
Channel
Gets the underlying RabbitMQ model
IModel Channel { get; }
Property Value
- IModel
Methods
AddListener(IListener)
Add a publisher callback listener
void AddListener(IPublisherCallbackChannel.IListener listener)
Parameters
listener
IPublisherCallbackChannel.IListenerthe listener to add
AddPendingConfirm(IListener, ulong, PendingConfirm)
Add a pending confirmation to this channels map
void AddPendingConfirm(IPublisherCallbackChannel.IListener listener, ulong sequence, PendingConfirm pendingConfirm)
Parameters
listener
IPublisherCallbackChannel.IListenerthe listener the pending confir is for
sequence
ulongthe key to the map
pendingConfirm
PendingConfirmthe pending confirm
Expire(IListener, long)
Expire (remove) any pending confirmations created before the specified cutoff time for the supplied listener and return them to the caller
IList<PendingConfirm> Expire(IPublisherCallbackChannel.IListener listener, long cutoffTime)
Parameters
listener
IPublisherCallbackChannel.IListenerthe listener
cutoffTime
longthe time before which expired messages were created
Returns
- IList<PendingConfirm>
the list of expired confirms
GetPendingConfirmsCount()
Gett the total pending confirm count
int GetPendingConfirmsCount()
Returns
- int
the total count
GetPendingConfirmsCount(IListener)
Get the total pending confirm count for the listener
int GetPendingConfirmsCount(IPublisherCallbackChannel.IListener listener)
Parameters
listener
IPublisherCallbackChannel.IListenerthe listener to get confirm count for
Returns
- int
the count of pending confirms
SetAfterAckCallback(Action<IModel>)
Set a callback to be invoked after the ack/nack has been handled
void SetAfterAckCallback(Action<IModel> callback)
Parameters
callback
Action<IModel>the callback