public final class InboundManifestCompression extends InboundCompression<java.lang.String>
InboundCompression.State<T>, InboundCompression.State$
Constructor and Description |
---|
InboundManifestCompression(LoggingAdapter log,
ArterySettings.Compression settings,
long originUid,
InboundContext inboundContext,
TopHeavyHitters<java.lang.String> heavyHitters) |
Modifier and Type | Method and Description |
---|---|
void |
advertiseCompressionTable(OutboundContext outboundContext,
CompressionTable<java.lang.String> table)
Must be implemented by extending classes in order to send a
ControlMessage
of appropriate type to the remote system in order to advertise the compression table to it. |
OptionVal<java.lang.String> |
decompress(byte incomingTableVersion,
int idx)
Override and specialize if needed, for default compression logic delegate to 3-param overload
|
void |
increment(Address remoteAddress,
java.lang.String value,
long n)
Add
n occurrence for the given key and call heavyHittedDetected if element has become a heavy hitter. |
confirmAdvertisement, decompressInternal, heavyHitters, log, runNextTableAdvertisement, settings, toString
public InboundManifestCompression(LoggingAdapter log, ArterySettings.Compression settings, long originUid, InboundContext inboundContext, TopHeavyHitters<java.lang.String> heavyHitters)
public void advertiseCompressionTable(OutboundContext outboundContext, CompressionTable<java.lang.String> table)
InboundCompression
ControlMessage
of appropriate type to the remote system in order to advertise the compression table to it.advertiseCompressionTable
in class InboundCompression<java.lang.String>
outboundContext
- (undocumented)table
- (undocumented)public void increment(Address remoteAddress, java.lang.String value, long n)
InboundCompression
n
occurrence for the given key and call heavyHittedDetected
if element has become a heavy hitter.
Empty keys are omitted.increment
in class InboundCompression<java.lang.String>
remoteAddress
- (undocumented)value
- (undocumented)n
- (undocumented)public OptionVal<java.lang.String> decompress(byte incomingTableVersion, int idx)
InboundCompression
decompress
in class InboundCompression<java.lang.String>