|
Re: Proposed Final Draft
It should be used only for tasks which need to be scheduled.
Effectively there is only single task like that in the API right now: delayed reconnect of SseEventSource.
Regards,
It should be used only for tasks which need to be scheduled.
Effectively there is only single task like that in the API right now: delayed reconnect of SseEventSource.
Regards,
|
By
Pavel Bucek
·
#223
·
|
|
Re: Proposed Final Draft
Hi Pavel, thanks,
OK, what about the ScheduledExecutorService - how can the client API implementation know when to use this one
if the ExecutorService is also set ?
Hi Pavel, thanks,
OK, what about the ScheduledExecutorService - how can the client API implementation know when to use this one
if the ExecutorService is also set ?
|
By
Sergey Beryozkin
·
#222
·
|
|
Re: Proposed Final Draft
Hi Sergey,
yes, that is correct.
Regards,
Pavel
Hi Sergey,
yes, that is correct.
Regards,
Pavel
|
By
Pavel Bucek
·
#221
·
|
|
Re: Proposed Final Draft
Hi Pavel
These executor services, if set in the client builder - should they be used in the rx() flows ?
Thanks, Sergey
Hi Pavel
These executor services, if set in the client builder - should they be used in the rx() flows ?
Thanks, Sergey
|
By
Sergey Beryozkin
·
#220
·
|
|
Re: Proposed Final Draft
Hi Andy,
firstly, thanks for your kind words.
Your pull request was merged - good that you brought that up. Thanks!
Best regards,
Pavel
Hi Andy,
firstly, thanks for your kind words.
Your pull request was merged - good that you brought that up. Thanks!
Best regards,
Pavel
|
By
Pavel Bucek
·
#219
·
|
|
Re: Proposed Final Draft -- Java 8 Implementation
I have to agree, but we can't do the whole change at this point :-/
I'm adding @throws to Sse, since there is a default implementation in the api, which behaves like that. SseEventSink change could
I have to agree, but we can't do the whole change at this point :-/
I'm adding @throws to Sse, since there is a default implementation in the api, which behaves like that. SseEventSink change could
|
By
Pavel Bucek
·
#218
·
|
|
Re: Proposed Final Draft -- Java 8 Implementation
Ok I agree that we should not touch old APIs, but we should add @throws to new APIs like Sse and SseEventSink then. Also I am not convinced that IAE is only for application callers: Why should it stay
Ok I agree that we should not touch old APIs, but we should add @throws to new APIs like Sse and SseEventSink then. Also I am not convinced that IAE is only for application callers: Why should it stay
|
By
Markus KARG
·
#217
·
|
|
Re: Proposed Final Draft -- Java 8 Implementation
Annotating provider method arguments doesn't make much sense, since they are invoked by the implementation - declaring @throws makes more sense on methods which are invoked directly by the application
Annotating provider method arguments doesn't make much sense, since they are invoked by the implementation - declaring @throws makes more sense on methods which are invoked directly by the application
|
By
Pavel Bucek
·
#216
·
|
|
Re: Proposed Final Draft -- Java 8 Implementation
Lol ;-D
Pavel, I meant the SSE API, actually, but right, I did not check ALL APIs. So to make your claim a valid argument, we should now add @throws IllegalArgumentExcpetion to the JavaDocs of ALL
Lol ;-D
Pavel, I meant the SSE API, actually, but right, I did not check ALL APIs. So to make your claim a valid argument, we should now add @throws IllegalArgumentExcpetion to the JavaDocs of ALL
|
By
Markus KARG
·
#215
·
|
|
Re: Proposed Final Draft -- Java 8 Implementation
:-)
$ grep -r IllegalArgument .
./javax/ws/rs/BadRequestException.java: * @throws IllegalArgumentException in case the status code set in the response
./javax/ws/rs/BadRequestException.java:
:-)
$ grep -r IllegalArgument .
./javax/ws/rs/BadRequestException.java: * @throws IllegalArgumentException in case the status code set in the response
./javax/ws/rs/BadRequestException.java:
|
By
Pavel Bucek
·
#214
·
|
|
Re: Proposed Final Draft -- Java 8 Implementation
Pavel, actually looking at the rest of the *API* (as you suggested) I did not find declaration of IAE, as it is solely part of the *implementation* -- it is rather undocumented that in particular IAE
Pavel, actually looking at the rest of the *API* (as you suggested) I did not find declaration of IAE, as it is solely part of the *implementation* -- it is rather undocumented that in particular IAE
|
By
Markus KARG
·
#213
·
|
|
Re: Proposed Final Draft -- Java 8 Implementation
Well, if you look at the rest of the API, the pattern is to use IAE even when parameter is null, so .. being consistent with existing API wins over anything else..
Well, if you look at the rest of the API, the pattern is to use IAE even when parameter is null, so .. being consistent with existing API wins over anything else..
|
By
Pavel Bucek
·
#212
·
|
|
Re: Proposed Final Draft -- Java 8 Implementation
So it is by intention that you still use IllegalArgumentException instead of NPE. Understood. :-)
So it is by intention that you still use IllegalArgumentException instead of NPE. Understood. :-)
|
By
Markus KARG
·
#211
·
|
|
Re: Proposed Final Draft
Hi Pavel,
Thank you for the clarification, and my apologies for bringing this up so late - a colleague and I ran into some confusion on this point, so I thought I would bring if forward in hopes
Hi Pavel,
Thank you for the clarification, and my apologies for bringing this up so late - a colleague and I ran into some confusion on this point, so I thought I would bring if forward in hopes
|
By
Andy McCright
·
#210
·
|
|
Re: Proposed Final Draft -- Java 8 Implementation
Hi Markus,
I'm sorry I'm responding so late, I must have missed this email.
The main issue with Object.requireNonNull is that it throws a NPE instead of IAE, so we can't really use it on most of
Hi Markus,
I'm sorry I'm responding so late, I must have missed this email.
The main issue with Object.requireNonNull is that it throws a NPE instead of IAE, so we can't really use it on most of
|
By
Pavel Bucek
·
#209
·
|
|
Re: Proposed Final Draft
Hi Andy,
it is very late for changing anything..
We are not saying that on Java EE environment ClientBuilder#executorService and #scheduledExecutorService have no effect - but it
Hi Andy,
it is very late for changing anything..
We are not saying that on Java EE environment ClientBuilder#executorService and #scheduledExecutorService have no effect - but it
|
By
Pavel Bucek
·
#208
·
|
|
Re: Proposed Final Draft
Hi Pavel,
If it is not too late, I'm wondering if we could clarify the uses of ClientBuilder.executorService(...) and scheduledExecutorService(...).
Are we saying that in a Java EE environment,
Hi Pavel,
If it is not too late, I'm wondering if we could clarify the uses of ClientBuilder.executorService(...) and scheduledExecutorService(...).
Are we saying that in a Java EE environment,
|
By
Andy McCright
·
#207
·
|
|
Re: FW: [jersey/jersey] SseEventSink invokes custom WriterInterceptor with wrong type, then throws NPE (#3592)
Pavel,
from the view of an application programmer the arguments look quite different: SSE within JAX-RS is not recognized as a different technology, but simply as a push-add-on that will keep the
Pavel,
from the view of an application programmer the arguments look quite different: SSE within JAX-RS is not recognized as a different technology, but simply as a push-add-on that will keep the
|
By
Markus KARG
·
#206
·
|
|
Re: FW: [jersey/jersey] SseEventSink invokes custom WriterInterceptor with wrong type, then throws NPE (#3592)
Hi Pavel
So, when the SSE server reports a new event which will need to be delivered to SSE Client in for ex JSON, MessageBodyWriter is supported, right ?
I'm not
Hi Pavel
So, when the SSE server reports a new event which will need to be delivered to SSE Client in for ex JSON, MessageBodyWriter is supported, right ?
I'm not
|
By
Sergey Beryozkin
·
#205
·
|
|
Re: FW: [jersey/jersey] SseEventSink invokes custom WriterInterceptor with wrong type, then throws NPE (#3592)
Markus,
yes, the issue is that mostly, you wouldn't want to mix "standard" response processing and SSE.
MessageBodyWriter is slightly different, since there is a type, the ultimate
Markus,
yes, the issue is that mostly, you wouldn't want to mix "standard" response processing and SSE.
MessageBodyWriter is slightly different, since there is a type, the ultimate
|
By
Pavel Bucek
·
#204
·
|