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
| Edit this page 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, long, string)
TBD
Declaration
public TestTransport(Address localAddress, AssociationRegistry registry, long maximumPayloadBytes = 32000, string schemeIdentifier = "test")
Parameters
Type | Name | Description |
---|---|---|
Address | localAddress | TBD |
AssociationRegistry | registry | TBD |
long | maximumPayloadBytes | TBD |
string | schemeIdentifier | TBD |
Fields
| Edit this page 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, bool> |
ListenBehavior
Declaration
public readonly SwitchableLoggedBehavior<bool, (Address, TaskCompletionSource<IAssociationEventListener>)> ListenBehavior
Field Value
Type | Description |
---|---|
SwitchableLoggedBehavior<bool, (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<bool, bool> |
WriteBehavior
Declaration
public readonly SwitchableLoggedBehavior<(TestAssociationHandle, ByteString), bool> WriteBehavior
Field Value
Type | Description |
---|---|
SwitchableLoggedBehavior<(TestAssociationHandle, ByteString), bool> |
Methods
| Edit this page 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
| Edit this page View SourceDefaultDisassociate(TestAssociationHandle)
TBD
Declaration
public Task<bool> DefaultDisassociate(TestAssociationHandle handle)
Parameters
Type | Name | Description |
---|---|---|
TestAssociationHandle | handle | TBD |
Returns
Type | Description |
---|---|
Task<bool> | TBD |
DefaultListen()
TBD
Declaration
public Task<(Address, TaskCompletionSource<IAssociationEventListener>)> DefaultListen()
Returns
Type | Description |
---|---|
Task<(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)
TBD
Declaration
public override bool IsResponsibleFor(Address remote)
Parameters
Type | Name | Description |
---|---|---|
Address | remote | TBD |
Returns
Type | Description |
---|---|
bool | TBD |
Overrides
| Edit this page View SourceListen()
TBD
Declaration
public override Task<(Address, TaskCompletionSource<IAssociationEventListener>)> Listen()
Returns
Type | Description |
---|---|
Task<(Address, TaskCompletionSource<IAssociationEventListener>)> | TBD |
Overrides
| Edit this page View SourceShutdown()
TBD
Declaration
public override Task<bool> Shutdown()
Returns
Type | Description |
---|---|
Task<bool> | TBD |
Overrides
| Edit this page View SourceWrite(TestAssociationHandle, ByteString)
TBD
Declaration
public Task<bool> Write(TestAssociationHandle handle, ByteString payload)
Parameters
Type | Name | Description |
---|---|---|
TestAssociationHandle | handle | TBD |
ByteString | payload | TBD |
Returns
Type | Description |
---|---|
Task<bool> | TBD |