Class Trid

  • All Implemented Interfaces:
    java.lang.Cloneable

    @Embeddable
    public class Trid
    extends ImmutableObject
    "A TRID (transaction identifier) element containing the transaction identifier assigned by the server to the command for which the response is being returned. The transaction identifier is formed using the clTRID associated with the command if supplied by the client and a svTRID (server transaction identifier) that is assigned by and unique to the server."
    • Constructor Detail

      • Trid

        public Trid()
    • Method Detail

      • getServerTransactionId

        public java.lang.String getServerTransactionId()
      • getClientTransactionId

        public java.util.Optional<java.lang.String> getClientTransactionId()
      • create

        public static Trid create​(@Nullable
                                  java.lang.String clientTransactionId,
                                  java.lang.String serverTransactionId)