Class InboundMessageRowCodec

java.lang.Object
at.aimon.session.postgres.internal.InboundMessageRowCodec

public final class InboundMessageRowCodec extends Object
Jackson codec for the InboundMessage envelope persisted to conversation_inbox.payload (JSONB).

The encoded form omits InboundMessage.getId() because the inbox-assigned id is the bigserial conversation_inbox.id column; on decode the caller passes the id (rendered as a string) and the codec stamps it onto the rebuilt envelope.

  • Constructor Details

    • InboundMessageRowCodec

      public InboundMessageRowCodec(com.fasterxml.jackson.databind.ObjectMapper mapper)
  • Method Details

    • encode

      public String encode(at.aimon.session.web.inbox.InboundMessage message)
    • decode

      public at.aimon.session.web.inbox.InboundMessage decode(String json, String rowId)