Class MessageSerializer

    • Method Detail

      • adaptiveLoadBalancingPoolFromBinary

        public AdaptiveLoadBalancingPool adaptiveLoadBalancingPoolFromBinary​(byte[] bytes)
      • akka$serialization$BaseSerializer$_setter_$identifier_$eq

        protected void akka$serialization$BaseSerializer$_setter_$identifier_$eq​(int x$1)
        Description copied from interface: BaseSerializer
        Globally unique serialization identifier configured in the reference.conf.

        See Serializer.identifier.

        Specified by:
        akka$serialization$BaseSerializer$_setter_$identifier_$eq in interface BaseSerializer
        x$1 - (undocumented)
      • compress

        public byte[] compress​(akka.protobufv3.internal.MessageLite msg)
      • decompress

        public byte[] decompress​(byte[] bytes)
      • fromBinary

        public java.lang.Object fromBinary​(byte[] bytes,
                                           java.lang.String manifest)
        Description copied from class: SerializerWithStringManifest
        Produces an object from an array of bytes, with an optional type-hint.

        It's recommended to throw in fromBinary if the manifest is unknown. This makes it possible to introduce new message types and send them to nodes that don't know about them. This is typically needed when performing rolling upgrades, i.e. running a cluster with mixed versions for while. NotSerializableException is treated as a transient problem in the TCP based remoting layer. The problem will be logged and message is dropped. Other exceptions will tear down the TCP connection because it can be an indication of corrupt bytes from the underlying transport.

        Specified by:
        fromBinary in class SerializerWithStringManifest
        bytes - (undocumented)
        manifest - (undocumented)
      • manifest

        public java.lang.String manifest​(java.lang.Object obj)
        Description copied from class: SerializerWithStringManifest
        Return the manifest (type hint) that will be provided in the fromBinary method. Use "" if manifest is not needed.
        Specified by:
        manifest in class SerializerWithStringManifest
        obj - (undocumented)
      • mixMetricSelectorFromBinary

        public MixMetricsSelector mixMetricSelectorFromBinary​(byte[] bytes)