jsr370-experts@jax-rs-spec.java.net

Re: [jax-rs-spec users] Server Sent Events feedback + EDR

From: Alessio Soldano <asoldano_at_redhat.com>
Date: Wed, 15 Feb 2017 18:26:32 +0100

Il 15/02/2017 16:47, Pavel Bucek ha scritto:
> Dear experts,
>
> if you have any feedback for SSE, please provide it by the end of this
> week, sooner the better.
I've just finished updating my prototype implementation to the latest
API and still have to try some non-trivial test scenario, which will
hopefully allow for providing meaningful feedback. In the mean time,
something (possibly minor) I've noticed is that SseEventSource defines
the following method:

void subscribe(Consumer<SseSubscription> onSubscribe,
                    Consumer<InboundSseEvent> onEvent,
                    Consumer<Throwable> onError,
                    Runnable onComplete);

now, can you clarify how the onSubscribe parameter is really meant to be
used? (the javadoc mentions it wrt invocations to SseSubscription'
request(long) and cancel() methods affecting registered handlers..?).

Thanks
Alessio