Interface PolyglotMessage


public interface PolyglotMessage
A message that can be produced as a polyglot envelope. Implement it on your own classes so EnvelopeCodec.fromMessage(com.babelqueue.PolyglotMessage) can build the canonical envelope without ever leaking a language-specific class name onto the wire.
  • Method Summary

    Modifier and Type
    Method
    Description
    The stable URN that identifies this message across languages.
    The pure-JSON payload (no class instances).
  • Method Details

    • getBabelUrn

      String getBabelUrn()
      The stable URN that identifies this message across languages.
    • toPayload

      Map<String,Object> toPayload()
      The pure-JSON payload (no class instances).