C# 클래스 Akka.Remote.Transport.AssociationHandle

A Service Provider Interface (SPI) layer for abstracting over logical links (associations) created by a Transport. Handles are responsible for providing an API for sending and receiving from the underlying channel. To register a listener for processing incoming payload data, the listener must be registered by completing the Task returned by AssociationHandle.ReadHandlerSource. Incoming data is not processed until this registration takes place.
파일 보기 프로젝트 열기: rogeralsing/akka.net 1 사용 예제들

공개 메소드들

메소드 설명
Disassociate ( ) : void

Closes the underlying transport link, if needed. Some transports might not need an explicit teardown (UDP) and some transports may not support it. Remote endpoint of the channel or connection MAY be notified, but this is not guaranteed. The transport that provides the handle MUST guarantee that Disassociate could be called arbitrarily many times.

Equals ( object obj ) : bool
GetHashCode ( ) : int
Write ( ByteString payload ) : bool

Asynchronously sends the specified payload to the remote endpoint. This method's implementation MUST be thread-safe as it might be called from different threads. This method MUST NOT block. Writes guarantee ordering of messages, but not their reception. The call to write returns with a boolean indicating if the channel was ready for writes or not. A return value of false indicates that the channel is not yet ready for deliver (e.g.: the write buffer is full)and the sender needs to wait until the channel becomes ready again. Returning false also means that the current write was dropped (this MUST be guaranteed to ensure duplication-free delivery).

보호된 메소드들

메소드 설명
AssociationHandle ( Akka.Actor.Address localAddress, Akka.Actor.Address remoteAddress ) : System
Equals ( AssociationHandle other ) : bool

메소드 상세

AssociationHandle() 보호된 메소드

protected AssociationHandle ( Akka.Actor.Address localAddress, Akka.Actor.Address remoteAddress ) : System
localAddress Akka.Actor.Address
remoteAddress Akka.Actor.Address
리턴 System

Disassociate() 공개 추상적인 메소드

Closes the underlying transport link, if needed. Some transports might not need an explicit teardown (UDP) and some transports may not support it. Remote endpoint of the channel or connection MAY be notified, but this is not guaranteed. The transport that provides the handle MUST guarantee that Disassociate could be called arbitrarily many times.
public abstract Disassociate ( ) : void
리턴 void

Equals() 보호된 메소드

protected Equals ( AssociationHandle other ) : bool
other AssociationHandle
리턴 bool

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

Write() 공개 추상적인 메소드

Asynchronously sends the specified payload to the remote endpoint. This method's implementation MUST be thread-safe as it might be called from different threads. This method MUST NOT block. Writes guarantee ordering of messages, but not their reception. The call to write returns with a boolean indicating if the channel was ready for writes or not. A return value of false indicates that the channel is not yet ready for deliver (e.g.: the write buffer is full)and the sender needs to wait until the channel becomes ready again. Returning false also means that the current write was dropped (this MUST be guaranteed to ensure duplication-free delivery).
public abstract Write ( ByteString payload ) : bool
payload ByteString The payload to be delivered to the remote endpoint.
리턴 bool