Closed kanuku closed 7 years ago
When publishing a batch of events one would like to find out which events failed by filtering for the returned eid in the failing BatchItemresponse.
eid
EnumSet<BatchItemResponse.PublishingStatus> errors = EnumSet.of( BatchItemResponse.PublishingStatus.failed, BatchItemResponse.PublishingStatus.aborted ); BatchItemResponseCollection sendBatch = client.resources()// .events()// .sendBatch(eventTypeName, events); sendBatch.items().stream().filter((response)->{ erraneous.contains( response.publishingStatus()) });
Currently the problem is that the enum BatchItemResponse.PublishingStatus used to represent the publishing status of a batchItem is not reachable (protected) at all.
BatchItemResponse.PublishingStatus
available in 0.9.7
When publishing a batch of events one would like to find out which events failed by filtering for the returned
eid
in the failing BatchItemresponse.Currently the problem is that the enum
BatchItemResponse.PublishingStatus
used to represent the publishing status of a batchItem is not reachable (protected) at all.