Package org.apache.pekko.remote.artery
Interface HeaderBuilder
public interface HeaderBuilder
INTERNAL API
-
Method Summary
Modifier and TypeMethodDescriptionvoidclearFlag(org.apache.pekko.remote.artery.ByteFlag byteFlag) booleanflag(org.apache.pekko.remote.artery.ByteFlag byteFlag) byteflags()bytebytebooleanboolean<any>manifest(long originUid) <any><any><any>recipientActorRef(long originUid) Retrieve the compressed ActorRef by the compressionId carried by this header.<any>Retrieve the raw literal actor path, instead of using the compressed value.voidReset all fields that are related to an outbound message, i.e.<any>senderActorRef(long originUid) Retrieve the compressed ActorRef by the compressionId carried by this header.<any>Retrieve the raw literal actor path, instead of using the compressed value.intvoidsetFlag(org.apache.pekko.remote.artery.ByteFlag byteFlag) voidsetFlags(byte v) voidsetManifest(String manifest) voidvoidvoidsetOutboundActorRefCompression(<any> table) voidsetOutboundClassManifestCompression(<any> table) voidvoidsetRemoteInstruments(org.apache.pekko.remote.artery.RemoteInstruments instruments) voidvoidsetSerializer(int serializer) voidsetUid(long u) voidsetVersion(byte v) longuid()voiduseOutboundCompression(boolean on) byteversion()
-
Method Details
-
setVersion
void setVersion(byte v) -
version
byte version() -
setFlags
void setFlags(byte v) -
flags
byte flags() -
flag
boolean flag(org.apache.pekko.remote.artery.ByteFlag byteFlag) -
setFlag
void setFlag(org.apache.pekko.remote.artery.ByteFlag byteFlag) -
clearFlag
void clearFlag(org.apache.pekko.remote.artery.ByteFlag byteFlag) -
inboundActorRefCompressionTableVersion
byte inboundActorRefCompressionTableVersion() -
inboundClassManifestCompressionTableVersion
byte inboundClassManifestCompressionTableVersion() -
useOutboundCompression
void useOutboundCompression(boolean on) -
outboundActorRefCompression
<any> outboundActorRefCompression() -
setOutboundActorRefCompression
void setOutboundActorRefCompression(<any> table) -
outboundClassManifestCompression
<any> outboundClassManifestCompression() -
setOutboundClassManifestCompression
void setOutboundClassManifestCompression(<any> table) -
setUid
void setUid(long u) -
uid
long uid() -
setSenderActorRef
-
senderActorRef
<any> senderActorRef(long originUid) Retrieve the compressed ActorRef by the compressionId carried by this header. ReturnsNoneif ActorRef was not compressed, and then the literalsenderActorRefPath()should be used. -
senderActorRefPath
<any> senderActorRefPath()Retrieve the raw literal actor path, instead of using the compressed value. ReturnsNoneif ActorRef was compressed (!). To obtain the path in such case callsenderActorRef(long)and extract the path from it directly. -
setNoSender
void setNoSender() -
isNoSender
boolean isNoSender() -
setNoRecipient
void setNoRecipient() -
isNoRecipient
boolean isNoRecipient() -
setRecipientActorRef
-
recipientActorRef
<any> recipientActorRef(long originUid) Retrieve the compressed ActorRef by the compressionId carried by this header. ReturnsNoneif ActorRef was not compressed, and then the literalrecipientActorRefPath()should be used. -
recipientActorRefPath
<any> recipientActorRefPath()Retrieve the raw literal actor path, instead of using the compressed value. ReturnsNoneif ActorRef was compressed (!). To obtain the path in such case callrecipientActorRefPath()and extract the path from it directly. -
setSerializer
void setSerializer(int serializer) -
serializer
int serializer() -
setManifest
-
manifest
<any> manifest(long originUid) -
setRemoteInstruments
void setRemoteInstruments(org.apache.pekko.remote.artery.RemoteInstruments instruments) -
resetMessageFields
void resetMessageFields()Reset all fields that are related to an outbound message, i.e. Encoder calls this as the first thing in onPush.
-