C# 클래스 Amqp.SenderLink

The SenderLink represents a link that sends outgoing messages.
상속: Link
파일 보기 프로젝트 열기: xamarin/mini-hacks 1 사용 예제들

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
OnAbort ( Error error ) : void

Aborts the sender link.

OnClose ( Error error ) : bool

Closes the sender link.

비공개 메소드들

메소드 설명
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

메소드 상세

OnAbort() 보호된 메소드

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

OnClose() 보호된 메소드

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

Send() 공개 메소드

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.
리턴 void

Send() 공개 메소드

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.
리턴 void

SenderLink() 공개 메소드

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.
리턴 System

SenderLink() 공개 메소드

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.
리턴 System

SenderLink() 공개 메소드

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.
리턴 System