C# Class Amqp.SenderLink

The SenderLink represents a link that sends outgoing messages.
Inheritance: Link
Show file Open project: xamarin/mini-hacks Class Usage Examples

Public Methods

Method Description
Send ( Amqp.Message message, OutcomeCallback callback, object state ) : void

Sends a message asynchronously. If callback is null, the message is sent without requesting for an acknowledgement (best effort).

Send ( Amqp.Message message, int millisecondsTimeout = 60000 ) : void

Sends a message and synchronously waits for an acknowledgement.

SenderLink ( Session session, string name, Amqp.Framing.Attach attach, OnAttached onAttached ) : System

Initializes a sender link.

SenderLink ( Session session, string name, Amqp.Framing.Target target, OnAttached onAttached ) : System

Initializes a sender link.

SenderLink ( Session session, string name, string address ) : System

Initializes a sender link.

Protected Methods

Method Description
OnAbort ( Error error ) : void

Aborts the sender link.

OnClose ( Error error ) : bool

Closes the sender link.

Private Methods

Method Description
OnDeliveryStateChanged ( Amqp.Delivery delivery ) : void
OnFlow ( Amqp.Framing.Flow flow ) : void
OnTransfer ( Amqp.Delivery delivery, Amqp.Framing.Transfer transfer, ByteBuffer buffer ) : void
Send ( Amqp.Message message, Amqp.Framing.DeliveryState deliveryState, OutcomeCallback callback, object state ) : void
WriteDelivery ( Amqp.Delivery delivery ) : void

Method Details

OnAbort() protected method

Aborts the sender link.
protected OnAbort ( Error error ) : void
error Error The error for the abort.
return void

OnClose() protected method

Closes the sender link.
protected OnClose ( Error error ) : bool
error Error The error for the closure.
return bool

Send() public method

Sends a message asynchronously. If callback is null, the message is sent without requesting for an acknowledgement (best effort).
public Send ( Amqp.Message message, OutcomeCallback callback, object state ) : void
message Amqp.Message The message to send.
callback OutcomeCallback The callback to invoke when acknowledgement is received.
state object The object that is passed back to the outcome callback.
return void

Send() public method

Sends a message and synchronously waits for an acknowledgement.
public Send ( Amqp.Message message, int millisecondsTimeout = 60000 ) : void
message Amqp.Message The message to send.
millisecondsTimeout int The time in milliseconds to wait for the acknowledgement.
return void

SenderLink() public method

Initializes a sender link.
public SenderLink ( Session session, string name, Amqp.Framing.Attach attach, OnAttached onAttached ) : System
session Session The session within which to create the link.
name string The link name.
attach Amqp.Framing.Attach The attach frame to send for this link.
onAttached OnAttached The callback to invoke when an attach is received from peer.
return System

SenderLink() public method

Initializes a sender link.
public SenderLink ( Session session, string name, Amqp.Framing.Target target, OnAttached onAttached ) : System
session Session The session within which to create the link.
name string The link name.
target Amqp.Framing.Target The target on attach that specifies the message target.
onAttached OnAttached The callback to invoke when an attach is received from peer.
return System

SenderLink() public method

Initializes a sender link.
public SenderLink ( Session session, string name, string address ) : System
session Session The session within which to create the link.
name string The link name.
address string The node address.
return System