C# Class Amqp.SenderLink

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
OnAbort ( Error error ) : void

Aborts the sender link.

OnClose ( Error error ) : bool

Closes the sender link.

Private Methods

Méthode 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 méthode

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

OnClose() protected méthode

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

Send() public méthode

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.
Résultat void

Send() public méthode

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.
Résultat void

SenderLink() public méthode

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.
Résultat System

SenderLink() public méthode

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.
Résultat System

SenderLink() public méthode

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.
Résultat System