Table of Contents

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.ChannelNumber
IModel.CloseReason
IModel.DefaultConsumer
IModel.IsClosed
IModel.IsOpen
IModel.NextPublishSeqNo
IModel.ContinuationTimeout
IModel.BasicAcks
IModel.BasicNacks
IModel.BasicRecoverOk
IModel.BasicReturn
IModel.CallbackException
IModel.FlowControl
IModel.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.IListener

the 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.IListener

the listener the pending confir is for

sequence ulong

the key to the map

pendingConfirm PendingConfirm

the 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.IListener

the listener

cutoffTime long

the 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.IListener

the 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