Interface HeaderBuilder

  • All Known Implementing Classes:
    HeaderBuilderImpl

    public interface HeaderBuilder
    INTERNAL API
    • Method Detail

      • setVersion

        void setVersion​(byte v)
      • version

        byte version()
      • setFlags

        void setFlags​(byte v)
      • flags

        byte flags()
      • flag

        boolean flag​(ByteFlag byteFlag)
      • setFlag

        void setFlag​(ByteFlag byteFlag)
      • clearFlag

        void clearFlag​(ByteFlag byteFlag)
      • inboundActorRefCompressionTableVersion

        byte inboundActorRefCompressionTableVersion()
      • inboundClassManifestCompressionTableVersion

        byte inboundClassManifestCompressionTableVersion()
      • useOutboundCompression

        void useOutboundCompression​(boolean on)
      • outboundClassManifestCompression

        CompressionTable<java.lang.String> outboundClassManifestCompression()
      • setOutboundClassManifestCompression

        void setOutboundClassManifestCompression​(CompressionTable<java.lang.String> table)
      • setUid

        void setUid​(long u)
      • uid

        long uid()
      • setSenderActorRef

        void setSenderActorRef​(ActorRef ref)
      • senderActorRef

        OptionVal<ActorRef> senderActorRef​(long originUid)
        Retrive the compressed ActorRef by the compressionId carried by this header. Returns None if ActorRef was not compressed, and then the literal senderActorRefPath() should be used.
        Parameters:
        originUid - (undocumented)
        Returns:
        (undocumented)
      • senderActorRefPath

        OptionVal<java.lang.String> senderActorRefPath()
        Retrive the raw literal actor path, instead of using the compressed value. Returns None if ActorRef was compressed (!). To obtain the path in such case call senderActorRef(long) and extract the path from it directly.
        Returns:
        (undocumented)
      • setNoSender

        void setNoSender()
      • isNoSender

        boolean isNoSender()
      • setNoRecipient

        void setNoRecipient()
      • isNoRecipient

        boolean isNoRecipient()
      • setRecipientActorRef

        void setRecipientActorRef​(ActorRef ref)
      • recipientActorRef

        OptionVal<ActorRef> recipientActorRef​(long originUid)
        Retrive the compressed ActorRef by the compressionId carried by this header. Returns None if ActorRef was not compressed, and then the literal recipientActorRefPath() should be used.
        Parameters:
        originUid - (undocumented)
        Returns:
        (undocumented)
      • recipientActorRefPath

        OptionVal<java.lang.String> recipientActorRefPath()
        Retrive the raw literal actor path, instead of using the compressed value. Returns None if ActorRef was compressed (!). To obtain the path in such case call recipientActorRefPath() and extract the path from it directly.
        Returns:
        (undocumented)
      • setSerializer

        void setSerializer​(int serializer)
      • serializer

        int serializer()
      • setManifest

        void setManifest​(java.lang.String manifest)
      • manifest

        OptionVal<java.lang.String> manifest​(long originUid)
      • resetMessageFields

        void resetMessageFields()
        Reset all fields that are related to an outbound message, i.e. Encoder calls this as the first thing in onPush.