Perhaps the new model object needs to be like:
{code} FlatPushMessageInformation extends BaseModel {
// like currently: @NotNull private String pushApplicationId;
private String rawJsonMessage; private String ipAddress; private String clientIdentifier;
private Date submitDate = new Date(); private Long appOpenCounter = 0L; private Date firstOpenDate; private Date lastOpenDate;
// this is new: private DeliveryState statue = PROCESSED List<VariantErrorStatus> errors ; // is only changed to FAILED after the first failure
// this is than "removed"
private Long appOpenCounter = 0L; private Date firstOpenDate; private Date lastOpenDate;
private Integer servedVariants = 0; private Integer totalVariants = 0;
private Set<VariantMetricInformation> variantInformations = new HashSet<>(); // end of not relevant section
} package org.jboss.aerogear.unifiedpush.api;
import java.util.List;
/** * Created by matzew on 5/31/17. */ public class VariantErrorStatus {
//@Id private String pushMessageVariantId = "push-job-id" + ":" + "variant-id";
public VariantErrorStatus() {
}
public void setPushMessageVariantId(final String bogusID) { pushMessageVariantId = bogusID; }
public void applyAllTheThings(final String PMI_ID, final String varID ) { // update me }
}
{ code} |
|