Package org.apache.pekko.remote.artery
Interface InboundContext
public interface InboundContext
INTERNAL API
Inbound API that is used by the stream operators.
Separate trait to facilitate testing without real transport.
-
Method Summary
Modifier and TypeMethodDescription<any>association(long uid) Lookup the outbound association for a given UID.association(Address remoteAddress) Lookup the outbound association for a given address.scala.concurrent.Future<Done>The local inbound address.voidpublishDropped(InboundEnvelope inbound, String reason) voidsendControl(Address to, ControlMessage message) An inbound operator can send control message, e.g.org.apache.pekko.remote.artery.ArterySettingssettings()
-
Method Details
-
association
Lookup the outbound association for a given address. -
association
<any> association(long uid) Lookup the outbound association for a given UID. Will returnOptionVal.Noneif the UID is unknown, i.e. handshake not completed. -
completeHandshake
-
localAddress
UniqueAddress localAddress()The local inbound address. -
publishDropped
-
sendControl
An inbound operator can send control message, e.g. a reply, to the origin address with this method. It will be sent over the control sub-channel. -
settings
org.apache.pekko.remote.artery.ArterySettings settings()
-