Interface MessageTransformer<FromT,​ToT>


  • public interface MessageTransformer<FromT,​ToT>
    A MessageTransformer details how to transform a message of one type to another. It is likely that either FromT or ToT will be a Message on publish and SequencedMessage on subscribe.
    • Method Detail

      • transform

        ToT transform​(FromT from)
               throws com.google.api.gax.rpc.ApiException
        Transform one message type to another.
        Throws:
        com.google.api.gax.rpc.ApiException