コード例 #1
0
  @Override
  public void fail(FailureType type, DriverState state, Exception ex) {
    log.warn("Request failed. FailureType==" + type, ex);

    StatusCode status = new StatusCode(type.getStatusSubCode());

    for (WriteItem item : items) {
      if (item != null) {
        item.setWriteStatus(status);
      }
    }

    super.fail(type, state, ex);
  }
コード例 #2
0
 /**
  * Set the StatusCode for all WriteItem's to the given StatusCode.
  *
  * @param status StatusCode to set.
  */
 protected void setItemStatus(StatusCode status) {
   for (WriteItem item : items) {
     item.setWriteStatus(status);
   }
 }