diff --git a/conductor-clients/java/conductor-java-sdk/conductor-client/src/main/java/com/netflix/conductor/common/model/BulkResponse.java b/conductor-clients/java/conductor-java-sdk/conductor-client/src/main/java/com/netflix/conductor/common/model/BulkResponse.java index 99b3f48f9..d27d9dc9e 100644 --- a/conductor-clients/java/conductor-java-sdk/conductor-client/src/main/java/com/netflix/conductor/common/model/BulkResponse.java +++ b/conductor-clients/java/conductor-java-sdk/conductor-client/src/main/java/com/netflix/conductor/common/model/BulkResponse.java @@ -21,15 +21,17 @@ /** * Response object to return a list of succeeded entities and a map of failed ones, including error * message, for the bulk request. + * + * @param the type of entities included in the successful results */ -public class BulkResponse { +public class BulkResponse { /** * Key - entityId Value - error message processing this entity */ private final Map bulkErrorResults; - private final List bulkSuccessfulResults; + private final List bulkSuccessfulResults; private final String message = "Bulk Request has been processed."; @@ -38,7 +40,7 @@ public BulkResponse() { this.bulkErrorResults = new HashMap<>(); } - public List getBulkSuccessfulResults() { + public List getBulkSuccessfulResults() { return bulkSuccessfulResults; } @@ -46,8 +48,8 @@ public Map getBulkErrorResults() { return bulkErrorResults; } - public void appendSuccessResponse(String id) { - bulkSuccessfulResults.add(id); + public void appendSuccessResponse(T result) { + bulkSuccessfulResults.add(result); } public void appendFailedResponse(String id, String errorMessage) {