Class ProtostreamTranscoder

  • All Implemented Interfaces:
    org.infinispan.commons.dataconversion.Transcoder

    public class ProtostreamTranscoder
    extends org.infinispan.commons.dataconversion.OneToManyTranscoder

    Performs conversions between application/x-protostream and commons formats.


    When converting to application/x-protostream, it will produce payloads with WrappedMessage by default, unless the param wrapped is supplied in the destination MediaType with value false


    Converting back to application/x-java-object requires either a payload that is a WrappedMessage or an unwrapped payload plus the type of the java object to convert to, specified using the type parameter in the application/x-java-object MediaType.

    Since:
    10.0
    • Method Detail

      • transcode

        public Object transcode​(Object content,
                                org.infinispan.commons.dataconversion.MediaType contentType,
                                org.infinispan.commons.dataconversion.MediaType destinationType)