C# Класс Akka.Remote.Transport.Transport

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Associate ( Akka.Actor.Address remoteAddress ) : Task

Asynchronously opens a logical duplex link between two Transport entities over a network. It could be backed with a real transport layer connection (TCP), socketless connections provided over datagram protocols (UDP), and more. This call returns a Task of an AssociationHandle. A faulted Task indicates that the association attempt was unsuccessful. If the exception is InvalidAssociationException then the association request was invalid and it's impossible to recover.

IsResponsibleFor ( Akka.Actor.Address remote ) : bool
Listen ( ) : TaskCompletionSource>>.Task
ManagementCommand ( object message ) : Task

This method allows upper layers to send management commands to the transport. It is the responsibility of the sender to send appropriate commands to different transport implementations. Unknown commands will be ignored.

Shutdown ( ) : Task

Shuts down the transport layer and releases all of the corresponding resources. Shutdown is asynchronous and is signaled by the result of the returned Task. The transport SHOULD try flushing pending writes before becoming completely closed.

Описание методов

Associate() публичный абстрактный Метод

Asynchronously opens a logical duplex link between two Transport entities over a network. It could be backed with a real transport layer connection (TCP), socketless connections provided over datagram protocols (UDP), and more. This call returns a Task of an AssociationHandle. A faulted Task indicates that the association attempt was unsuccessful. If the exception is InvalidAssociationException then the association request was invalid and it's impossible to recover.
public abstract Associate ( Akka.Actor.Address remoteAddress ) : Task
remoteAddress Akka.Actor.Address The address of the remote transport entity.
Результат Task

IsResponsibleFor() публичный абстрактный Метод

public abstract IsResponsibleFor ( Akka.Actor.Address remote ) : bool
remote Akka.Actor.Address
Результат bool

Listen() публичный абстрактный Метод

public abstract Listen ( ) : TaskCompletionSource>>.Task
Результат TaskCompletionSource>>.Task

ManagementCommand() публичный Метод

This method allows upper layers to send management commands to the transport. It is the responsibility of the sender to send appropriate commands to different transport implementations. Unknown commands will be ignored.
public ManagementCommand ( object message ) : Task
message object Command message to send to the transport.
Результат Task

Shutdown() публичный абстрактный Метод

Shuts down the transport layer and releases all of the corresponding resources. Shutdown is asynchronous and is signaled by the result of the returned Task. The transport SHOULD try flushing pending writes before becoming completely closed.
public abstract Shutdown ( ) : Task
Результат Task