Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make BatchItemResponse.PublishingStatus public #264

Closed
kanuku opened this issue Sep 20, 2017 · 1 comment
Closed

make BatchItemResponse.PublishingStatus public #264

kanuku opened this issue Sep 20, 2017 · 1 comment
Assignees

Comments

@kanuku
Copy link

kanuku commented Sep 20, 2017

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.

        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.

@dehora
Copy link
Owner

dehora commented Sep 21, 2017

available in 0.9.7

@dehora dehora closed this as completed Sep 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants