Class TestTransport
Transport implementation used for testing. The TestTransport is basically shared memory between actor systems. It can be programmed to emulate different failure modes of a Transport implementation. TestTransport keeps a log of the activities it was requested to do. This class is not optimized for performance and MUST not be used in production systems.
Inherited Members
Namespace: Akka.Remote.Transport
Assembly: Akka.Remote.dll
Syntax
public class TestTransport : Transport
Constructors
| Improve this Doc View SourceTestTransport(ActorSystem, Config)
TBD
Declaration
public TestTransport(ActorSystem system, Config conf)
Parameters
Type | Name | Description |
---|---|---|
ActorSystem | system | TBD |
Config | conf | TBD |
TestTransport(Address, AssociationRegistry, Int64, String)
TBD
Declaration
public TestTransport(Address localAddress, AssociationRegistry registry, long maximumPayloadBytes = 32000L, string schemeIdentifier = "test")
Parameters
Type | Name | Description |
---|---|---|
Address | localAddress | TBD |
AssociationRegistry | registry | TBD |
Int64 | maximumPayloadBytes | TBD |
String | schemeIdentifier | TBD |
Fields
| Improve this Doc View SourceAssociateBehavior
Declaration
public readonly SwitchableLoggedBehavior<Address, AssociationHandle> AssociateBehavior
Field Value
Type | Description |
---|---|
SwitchableLoggedBehavior<Address, AssociationHandle> |
DisassociateBehavior
Declaration
public readonly SwitchableLoggedBehavior<TestAssociationHandle, bool> DisassociateBehavior
Field Value
Type | Description |
---|---|
SwitchableLoggedBehavior<TestAssociationHandle, Boolean> |
ListenBehavior
Declaration
public readonly SwitchableLoggedBehavior<bool, (Address, TaskCompletionSource<IAssociationEventListener>)> ListenBehavior
Field Value
Type | Description |
---|---|
SwitchableLoggedBehavior<Boolean, System.ValueTuple<Address, TaskCompletionSource<IAssociationEventListener>>> |
LocalAddress
Declaration
public readonly Address LocalAddress
Field Value
Type | Description |
---|---|
Address |
ShutdownBehavior
Declaration
public readonly SwitchableLoggedBehavior<bool, bool> ShutdownBehavior
Field Value
Type | Description |
---|---|
SwitchableLoggedBehavior<Boolean, Boolean> |
WriteBehavior
Declaration
public readonly SwitchableLoggedBehavior<(TestAssociationHandle, ByteString), bool> WriteBehavior
Field Value
Type | Description |
---|---|
SwitchableLoggedBehavior<System.ValueTuple<TestAssociationHandle, Google.Protobuf.ByteString>, Boolean> |
Methods
| Improve this Doc View SourceAssociate(Address)
TBD
Declaration
public override Task<AssociationHandle> Associate(Address remoteAddress)
Parameters
Type | Name | Description |
---|---|---|
Address | remoteAddress | TBD |
Returns
Type | Description |
---|---|
Task<AssociationHandle> | TBD |
Overrides
| Improve this Doc View SourceDefaultDisassociate(TestAssociationHandle)
TBD
Declaration
public Task<bool> DefaultDisassociate(TestAssociationHandle handle)
Parameters
Type | Name | Description |
---|---|---|
TestAssociationHandle | handle | TBD |
Returns
Type | Description |
---|---|
Task<Boolean> | TBD |
DefaultListen()
TBD
Declaration
public Task<(Address, TaskCompletionSource<IAssociationEventListener>)> DefaultListen()
Returns
Type | Description |
---|---|
Task<System.ValueTuple<Address, TaskCompletionSource<IAssociationEventListener>>> | TBD |
Disassociate(TestAssociationHandle)
TBD
Declaration
public Task Disassociate(TestAssociationHandle handle)
Parameters
Type | Name | Description |
---|---|---|
TestAssociationHandle | handle | TBD |
Returns
Type | Description |
---|---|
Task | TBD |
IsResponsibleFor(Address)
Declaration
public override bool IsResponsibleFor(Address remote)
Parameters
Type | Name | Description |
---|---|---|
Address | remote |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceListen()
TBD
Declaration
public override Task<(Address, TaskCompletionSource<IAssociationEventListener>)> Listen()
Returns
Type | Description |
---|---|
Task<System.ValueTuple<Address, TaskCompletionSource<IAssociationEventListener>>> | TBD |
Overrides
| Improve this Doc View SourceShutdown()
TBD
Declaration
public override Task<bool> Shutdown()
Returns
Type | Description |
---|---|
Task<Boolean> | TBD |
Overrides
| Improve this Doc View SourceWrite(TestAssociationHandle, ByteString)
TBD
Declaration
public Task<bool> Write(TestAssociationHandle handle, ByteString payload)
Parameters
Type | Name | Description |
---|---|---|
TestAssociationHandle | handle | TBD |
Google.Protobuf.ByteString | payload | TBD |
Returns
Type | Description |
---|---|
Task<Boolean> | TBD |