Module com.s8.api

Class PutRowS8Request

java.lang.Object
com.s8.api.flow.table.requests.PutRowS8Request

public abstract class PutRowS8Request extends Object
A Request object to put a row in a specific table
Author:
Pierre Convert Copyright (C) 2025, Pierre Convert. All rights reserved.
  • Field Details

    • tableId

      public final String tableId
      The table id
    • row

      public final RowS8Object row
      the row object
    • isOverridingAllowed

      public final boolean isOverridingAllowed
      true if overriding is allowed
    • isImmediateHDWriteRequired

      public final boolean isImmediateHDWriteRequired
      true if hardware persistency is required before request processing termination
  • Constructor Details

    • PutRowS8Request

      public PutRowS8Request(String tableId, RowS8Object row, boolean isOverridingAllowed, boolean isImmediateHDWriteRequired)
      Main constructor
      Parameters:
      tableId - the id of the table
      row - the row object to be inserted
      isOverridingAllowed - true of overrides are allowed
      isImmediateHDWriteRequired - true if hardware immediate persistency is required
  • Method Details

    • onSucceed

      public abstract void onSucceed(PutRowS8Request.Status status)
      Callback method upon successful request processing.
      Parameters:
      status - the status of the response
    • onError

      public abstract void onError(Exception exception)
      Callback method upon failed request processing.
      Parameters:
      exception - the exception raised