TestTransport

@deprecated("Classic remoting is deprecated, use Artery", "2.6.0")
class TestTransport(val localAddress: Address, val registry: AssociationRegistry, val maximumPayloadBytes: Int, val schemeIdentifier: String) extends Transport

Transport implementation to be used for testing.

The TestTransport is basically a shared memory between actor systems. The TestTransport could 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 as an in-memory transport in production systems.

Companion:
object
Deprecated
Source:
TestTransport.scala
trait Transport
class Object
trait Matchable
class Any

Value members

Constructors

Concrete methods

override def associate(remoteAddress: Address): Future[AssociationHandle]
Definition Classes
Source:
TestTransport.scala
override def isResponsibleFor(address: Address): Boolean
Definition Classes
Source:
TestTransport.scala
override def shutdown(): Future[Boolean]
Definition Classes
Source:
TestTransport.scala
override def toString: String
Definition Classes
Any
Source:
TestTransport.scala

Inherited methods

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.

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.

Value parameters:
cmd

Command message to the transport

Returns:

Future that succeeds when the command was handled or dropped

Inherited from:
Transport
Source:
Transport.scala

Concrete fields

The akka.remote.transport.TestTransport.SwitchableLoggedBehavior for the disassociate() method on handles. All handle calls pass through this call.

The akka.remote.transport.TestTransport.SwitchableLoggedBehavior for the disassociate() method on handles. All handle calls pass through this call.

Source:
TestTransport.scala

The akka.remote.transport.TestTransport.SwitchableLoggedBehavior for the write() method on handles. All handle calls pass through this call. Please note, that write operations return a Boolean synchronously, so altering the behavior via pushDelayed will turn write to a blocking operation -- use of pushDelayed therefore is not recommended.

The akka.remote.transport.TestTransport.SwitchableLoggedBehavior for the write() method on handles. All handle calls pass through this call. Please note, that write operations return a Boolean synchronously, so altering the behavior via pushDelayed will turn write to a blocking operation -- use of pushDelayed therefore is not recommended.

Source:
TestTransport.scala