Packages

class AssociationRegistry extends AnyRef

Shared state among akka.remote.transport.TestTransport instances. Coordinates the transports and the means of communication between them.

Source
TestTransport.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AssociationRegistry
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new AssociationRegistry()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from AssociationRegistry toany2stringadd[AssociationRegistry] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (AssociationRegistry, B)
    Implicit
    This member is added by an implicit conversion from AssociationRegistry toArrowAssoc[AssociationRegistry] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clearLog(): Unit

    Clears the activity log.

  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  9. def deregisterAssociation(key: (Address, Address)): Option[(HandleEventListener, HandleEventListener)]

    Removes an association.

    Removes an association.

    key

    Ordered pair of addresses representing an association. First element is the address of the initiator.

    returns

    The original entries.

  10. def ensuring(cond: (AssociationRegistry) => Boolean, msg: => Any): AssociationRegistry
    Implicit
    This member is added by an implicit conversion from AssociationRegistry toEnsuring[AssociationRegistry] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (AssociationRegistry) => Boolean): AssociationRegistry
    Implicit
    This member is added by an implicit conversion from AssociationRegistry toEnsuring[AssociationRegistry] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: => Any): AssociationRegistry
    Implicit
    This member is added by an implicit conversion from AssociationRegistry toEnsuring[AssociationRegistry] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): AssociationRegistry
    Implicit
    This member is added by an implicit conversion from AssociationRegistry toEnsuring[AssociationRegistry] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. def existsAssociation(initiatorAddress: Address, remoteAddress: Address): Boolean

    Tests if an association was registered.

    Tests if an association was registered.

    initiatorAddress

    The initiator of the association.

    remoteAddress

    The other address of the association.

    returns

    True if there is an association for the given addresses.

  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def getRemoteReadHandlerFor(localHandle: TestAssociationHandle): Option[HandleEventListener]

    Returns the event handler corresponding to the remote endpoint of the given local handle.

    Returns the event handler corresponding to the remote endpoint of the given local handle. In other words it returns the listener that will receive InboundPayload events when

    write()

    is called on the given handle.

    write() }}}

    localHandle

    The handle

    returns

    The option that contains the Future for the listener if exists.

  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def logActivity(activity: Activity): Unit

    Logs a transport activity.

    Logs a transport activity.

    activity

    Activity to be logged.

  22. def logSnapshot: Seq[Activity]

    Takes a thread-safe snapshot of the current state of the activity log.

    Takes a thread-safe snapshot of the current state of the activity log.

    returns

    Collection containing activities ordered left-to-right according to time (first element is earliest).

  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. def registerListenerPair(key: (Address, Address), listeners: (HandleEventListener, HandleEventListener)): Unit

    Registers a Future of two handle event listeners corresponding to the two endpoints of an association.

    Registers a Future of two handle event listeners corresponding to the two endpoints of an association.

    key

    Ordered pair of addresses representing an association. First element must be the address of the initiator.

    listeners

    The future containing the listeners that will be responsible for handling the events of the two endpoints of the association. Elements in the pair must be in the same order as the addresses in the key parameter.

  27. def registerTransport(transport: TestTransport, associationEventListenerFuture: Future[AssociationEventListener]): Unit

    Records a mapping between an address and the corresponding (transport, associationEventListener) pair.

    Records a mapping between an address and the corresponding (transport, associationEventListener) pair.

    transport

    The transport that is to be registered. The address of this transport will be used as key.

    associationEventListenerFuture

    The future that will be completed with the listener that will handle the events for the given transport.

  28. def remoteListenerRelativeTo(handle: TestAssociationHandle, listenerPair: (HandleEventListener, HandleEventListener)): HandleEventListener

    Returns the remote endpoint for a pair of endpoints relative to the owner of the supplied handle.

    Returns the remote endpoint for a pair of endpoints relative to the owner of the supplied handle.

    handle

    the reference handle to determine the remote endpoint relative to

    listenerPair

    pair of listeners in initiator, receiver order.

  29. def reset(): Unit

    Resets the state of the registry.

    Resets the state of the registry. Warning! This method is not atomic.

  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. def transportFor(address: Address): Option[(TestTransport, Future[AssociationEventListener])]

    Returns the Transport bound to the given address.

    Returns the Transport bound to the given address.

    address

    The address bound to the transport.

    returns

    The transport if exists.

  33. def transportsReady(addresses: Address*): Boolean

    Indicates if all given transports were successfully registered.

    Indicates if all given transports were successfully registered. No associations can be established between transports that are not yet registered.

    addresses

    The listen addresses of transports that participate in the test case.

    returns

    True if all transports are successfully registered.

  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  2. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from AssociationRegistry toStringFormat[AssociationRegistry] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. def [B](y: B): (AssociationRegistry, B)
    Implicit
    This member is added by an implicit conversion from AssociationRegistry toArrowAssoc[AssociationRegistry] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromAssociationRegistry to any2stringadd[AssociationRegistry]

Inherited by implicit conversion StringFormat fromAssociationRegistry to StringFormat[AssociationRegistry]

Inherited by implicit conversion Ensuring fromAssociationRegistry to Ensuring[AssociationRegistry]

Inherited by implicit conversion ArrowAssoc fromAssociationRegistry to ArrowAssoc[AssociationRegistry]

Ungrouped