public final class HeaderBuilderImpl extends java.lang.Object implements HeaderBuilder
Constructor and Description |
---|
HeaderBuilderImpl(InboundCompressions inboundCompression,
CompressionTable<ActorRef> _outboundActorRefCompression,
CompressionTable<java.lang.String> _outboundClassManifestCompression) |
Modifier and Type | Method and Description |
---|---|
byte |
_flags() |
byte |
_inboundActorRefCompressionTableVersion() |
byte |
_inboundClassManifestCompressionTableVersion() |
java.lang.String |
_manifest() |
int |
_manifestIdx() |
CompressionTable<ActorRef> |
_outboundActorRefCompression() |
CompressionTable<java.lang.String> |
_outboundClassManifestCompression() |
java.lang.String |
_recipientActorRef() |
int |
_recipientActorRefIdx() |
OptionVal<RemoteInstruments> |
_remoteInstruments() |
java.lang.String |
_senderActorRef() |
int |
_senderActorRefIdx() |
int |
_serializer() |
long |
_uid() |
boolean |
_useOutboundCompression() |
byte |
_version() |
boolean |
flag(ByteFlag byteFlag) |
byte |
flags() |
byte |
inboundActorRefCompressionTableVersion() |
byte |
inboundClassManifestCompressionTableVersion() |
boolean |
isNoRecipient() |
boolean |
isNoSender() |
OptionVal<java.lang.String> |
manifest(long originUid) |
CompressionTable<ActorRef> |
outboundActorRefCompression() |
CompressionTable<java.lang.String> |
outboundClassManifestCompression() |
OptionVal<ActorRef> |
recipientActorRef(long originUid)
Retrive the compressed ActorRef by the compressionId carried by this header.
|
OptionVal<java.lang.String> |
recipientActorRefPath()
Retrive the raw literal actor path, instead of using the compressed value.
|
void |
resetMessageFields()
Reset all fields that are related to an outbound message,
i.e.
|
OptionVal<ActorRef> |
senderActorRef(long originUid)
Retrive the compressed ActorRef by the compressionId carried by this header.
|
OptionVal<java.lang.String> |
senderActorRefPath()
Retrive the raw literal actor path, instead of using the compressed value.
|
int |
serializer() |
void |
setFlag(ByteFlag byteFlag,
boolean value) |
void |
setFlags(byte v) |
void |
setManifest(java.lang.String manifest) |
void |
setNoRecipient() |
void |
setNoSender() |
void |
setOutboundActorRefCompression(CompressionTable<ActorRef> table) |
void |
setOutboundClassManifestCompression(CompressionTable<java.lang.String> table) |
void |
setRecipientActorRef(ActorRef ref) |
void |
setRemoteInstruments(RemoteInstruments instruments) |
void |
setSenderActorRef(ActorRef ref) |
void |
setSerializer(int serializer) |
void |
setUid(long uid) |
void |
setVersion(byte v) |
java.lang.String |
toString() |
long |
uid() |
void |
useOutboundCompression(boolean on) |
byte |
version() |
public HeaderBuilderImpl(InboundCompressions inboundCompression, CompressionTable<ActorRef> _outboundActorRefCompression, CompressionTable<java.lang.String> _outboundClassManifestCompression)
public CompressionTable<ActorRef> _outboundActorRefCompression()
public CompressionTable<java.lang.String> _outboundClassManifestCompression()
public byte _version()
public byte _flags()
public long _uid()
public byte _inboundActorRefCompressionTableVersion()
public byte _inboundClassManifestCompressionTableVersion()
public boolean _useOutboundCompression()
public java.lang.String _senderActorRef()
public int _senderActorRefIdx()
public java.lang.String _recipientActorRef()
public int _recipientActorRefIdx()
public int _serializer()
public java.lang.String _manifest()
public int _manifestIdx()
public OptionVal<RemoteInstruments> _remoteInstruments()
public void resetMessageFields()
HeaderBuilder
resetMessageFields
in interface HeaderBuilder
public void setVersion(byte v)
setVersion
in interface HeaderBuilder
public byte version()
version
in interface HeaderBuilder
public void setFlags(byte v)
setFlags
in interface HeaderBuilder
public byte flags()
flags
in interface HeaderBuilder
public boolean flag(ByteFlag byteFlag)
flag
in interface HeaderBuilder
public void setFlag(ByteFlag byteFlag, boolean value)
setFlag
in interface HeaderBuilder
public void setUid(long uid)
setUid
in interface HeaderBuilder
public long uid()
uid
in interface HeaderBuilder
public byte inboundActorRefCompressionTableVersion()
inboundActorRefCompressionTableVersion
in interface HeaderBuilder
public byte inboundClassManifestCompressionTableVersion()
inboundClassManifestCompressionTableVersion
in interface HeaderBuilder
public void useOutboundCompression(boolean on)
useOutboundCompression
in interface HeaderBuilder
public void setOutboundActorRefCompression(CompressionTable<ActorRef> table)
setOutboundActorRefCompression
in interface HeaderBuilder
public CompressionTable<ActorRef> outboundActorRefCompression()
outboundActorRefCompression
in interface HeaderBuilder
public void setOutboundClassManifestCompression(CompressionTable<java.lang.String> table)
setOutboundClassManifestCompression
in interface HeaderBuilder
public CompressionTable<java.lang.String> outboundClassManifestCompression()
outboundClassManifestCompression
in interface HeaderBuilder
public void setSenderActorRef(ActorRef ref)
setSenderActorRef
in interface HeaderBuilder
public void setNoSender()
setNoSender
in interface HeaderBuilder
public boolean isNoSender()
isNoSender
in interface HeaderBuilder
public OptionVal<ActorRef> senderActorRef(long originUid)
HeaderBuilder
None
if ActorRef was not compressed, and then the literal senderActorRefPath
should be used.senderActorRef
in interface HeaderBuilder
originUid
- (undocumented)public OptionVal<java.lang.String> senderActorRefPath()
HeaderBuilder
None
if ActorRef was compressed (!). To obtain the path in such case call senderActorRef
and extract the path from it directly.senderActorRefPath
in interface HeaderBuilder
public void setNoRecipient()
setNoRecipient
in interface HeaderBuilder
public boolean isNoRecipient()
isNoRecipient
in interface HeaderBuilder
public void setRecipientActorRef(ActorRef ref)
setRecipientActorRef
in interface HeaderBuilder
public OptionVal<ActorRef> recipientActorRef(long originUid)
HeaderBuilder
None
if ActorRef was not compressed, and then the literal recipientActorRefPath
should be used.recipientActorRef
in interface HeaderBuilder
originUid
- (undocumented)public OptionVal<java.lang.String> recipientActorRefPath()
HeaderBuilder
None
if ActorRef was compressed (!). To obtain the path in such case call recipientActorRefPath
and extract the path from it directly.recipientActorRefPath
in interface HeaderBuilder
public void setSerializer(int serializer)
setSerializer
in interface HeaderBuilder
public int serializer()
serializer
in interface HeaderBuilder
public void setManifest(java.lang.String manifest)
setManifest
in interface HeaderBuilder
public OptionVal<java.lang.String> manifest(long originUid)
manifest
in interface HeaderBuilder
public void setRemoteInstruments(RemoteInstruments instruments)
setRemoteInstruments
in interface HeaderBuilder
public java.lang.String toString()
toString
in class java.lang.Object