Proton DotNet
Public Member Functions | Properties | List of all members
Apache.Qpid.Proton.Engine.ISender Interface Reference

AMQP Sender link resource. More...

Inheritance diagram for Apache.Qpid.Proton.Engine.ISender:
Apache.Qpid.Proton.Engine.ILink< ISender > Apache.Qpid.Proton.Engine.Implementation.ProtonSender

Public Member Functions

ISender Drained ()
 Called when the remote receiver has requested a drain of credit and the sender has sent all available messages. More...
 
IOutgoingDelivery Next ()
 When there has been no deliveries so far or the current delivery has reached a complete state this method updates the current delivery to a new instance and returns that value. If the current delivery has not been completed by either calling a completing API method then this method will throw an exception to indicate the sender state cannot allow a new delivery to be started. More...
 
ISender Disposition (Predicate< IOutgoingDelivery > filter, IDeliveryState state, bool settle)
 For each unsettled outgoing delivery that is pending in the sender apply the given predicate and if it matches then apply the given delivery state and settled value to it. More...
 
ISender Settle (Predicate< IOutgoingDelivery > filter)
 For each unsettled outgoing delivery that is pending in the sender apply the given predicate and if it matches then settle the delivery. More...
 
ISender DeliveryStateUpdatedHandler (Action< IOutgoingDelivery > handler)
 Handler for updates for deliveries that have previously been sent. Updates can happen when the remote settles or otherwise modifies the delivery and the user needs to act on those changes. More...
 

Properties

bool IsSendable [get]
 Checks if the sender has credit and the session window allows for any bytes to be written currently. More...
 
IOutgoingDelivery Current [get]
 Gets the current outgoing delivery for this sender if one is available. The sender only tracks a current delivery in the case that the next method has bee called and if any bytes are written to the delivery using the streaming based API outgoing delivery stream bytes methods which allows for later writing of additional bytes to the delivery. Once the write bytes method or the complete API is called the final transfer is written indicating that the delivery is complete and the current delivery value is reset. An outgoing delivery that is being streamed may also be completed by calling the abort method of the outgoing delivery API. More...
 
IReadOnlyCollection< IOutgoingDeliveryUnsettled [get]
 Retrieves the list of unsettled deliveries sent from this sender. The deliveries in the enumerator cannot be written to but can have their settled state and disposition updated. Only when this sender settles on its end are the outgoing delivery instances removed from the unsettled tracking. More...
 
bool HasUnsettled [get]
 Returns true if the sender link is tracking any unsettled sent deliveries. More...
 
IDeliveryTagGenerator DeliveryTagGenerator [get, set]
 Configures a delivery tag generator that will be used to create and set a delivery tag value on each new outgoing delivery that is created and returned from the sender next delivery method. More...
 

Detailed Description

AMQP Sender link resource.

Member Function Documentation

◆ DeliveryStateUpdatedHandler()

ISender Apache.Qpid.Proton.Engine.ISender.DeliveryStateUpdatedHandler ( Action< IOutgoingDelivery handler)

Handler for updates for deliveries that have previously been sent. Updates can happen when the remote settles or otherwise modifies the delivery and the user needs to act on those changes.

Parameters
handler
Returns

Implemented in Apache.Qpid.Proton.Engine.Implementation.ProtonSender.

◆ Disposition()

ISender Apache.Qpid.Proton.Engine.ISender.Disposition ( Predicate< IOutgoingDelivery filter,
IDeliveryState  state,
bool  settle 
)

For each unsettled outgoing delivery that is pending in the sender apply the given predicate and if it matches then apply the given delivery state and settled value to it.

Parameters
filterThe filter predicate that controls when disposition is applied
stateThe delivery state to apply when the predicate matches
settleShould the delivery be settled when the predicate matches.
Returns

Implemented in Apache.Qpid.Proton.Engine.Implementation.ProtonSender.

◆ Drained()

ISender Apache.Qpid.Proton.Engine.ISender.Drained ( )

Called when the remote receiver has requested a drain of credit and the sender has sent all available messages.

Returns
This sender instance
Exceptions
InvalidOperationExceptionIf the link is not draining.

Implemented in Apache.Qpid.Proton.Engine.Implementation.ProtonSender.

◆ Next()

IOutgoingDelivery Apache.Qpid.Proton.Engine.ISender.Next ( )

When there has been no deliveries so far or the current delivery has reached a complete state this method updates the current delivery to a new instance and returns that value. If the current delivery has not been completed by either calling a completing API method then this method will throw an exception to indicate the sender state cannot allow a new delivery to be started.

Exceptions
InvalidOperationExceptionIf a current delivery is still incomplete

Implemented in Apache.Qpid.Proton.Engine.Implementation.ProtonSender.

◆ Settle()

ISender Apache.Qpid.Proton.Engine.ISender.Settle ( Predicate< IOutgoingDelivery filter)

For each unsettled outgoing delivery that is pending in the sender apply the given predicate and if it matches then settle the delivery.

Parameters
filter
Returns

Implemented in Apache.Qpid.Proton.Engine.Implementation.ProtonSender.

Property Documentation

◆ Current

IOutgoingDelivery Apache.Qpid.Proton.Engine.ISender.Current
get

Gets the current outgoing delivery for this sender if one is available. The sender only tracks a current delivery in the case that the next method has bee called and if any bytes are written to the delivery using the streaming based API outgoing delivery stream bytes methods which allows for later writing of additional bytes to the delivery. Once the write bytes method or the complete API is called the final transfer is written indicating that the delivery is complete and the current delivery value is reset. An outgoing delivery that is being streamed may also be completed by calling the abort method of the outgoing delivery API.

◆ DeliveryTagGenerator

IDeliveryTagGenerator Apache.Qpid.Proton.Engine.ISender.DeliveryTagGenerator
getset

Configures a delivery tag generator that will be used to create and set a delivery tag value on each new outgoing delivery that is created and returned from the sender next delivery method.

◆ HasUnsettled

bool Apache.Qpid.Proton.Engine.ISender.HasUnsettled
get

Returns true if the sender link is tracking any unsettled sent deliveries.

◆ IsSendable

bool Apache.Qpid.Proton.Engine.ISender.IsSendable
get

Checks if the sender has credit and the session window allows for any bytes to be written currently.

◆ Unsettled

IReadOnlyCollection<IOutgoingDelivery> Apache.Qpid.Proton.Engine.ISender.Unsettled
get

Retrieves the list of unsettled deliveries sent from this sender. The deliveries in the enumerator cannot be written to but can have their settled state and disposition updated. Only when this sender settles on its end are the outgoing delivery instances removed from the unsettled tracking.


The documentation for this interface was generated from the following file: