[akka-user] Can't configure min thread number

2017-04-02 Thread Thibault Meyer
Hi, I'm using Akka 2.4.17 and I try to configure the "default-dispatcher" to have at least 50 thread (arbitrary). But Java Mission Control only show 6 or 8. How I can pre-allocate a pool of 50 ready to go threads ? Thanks *MainEntry.java* /** * Entry point. * * @param args The program

[akka-user] Re: Chunked response with akka-http 10.x

2017-04-20 Thread Thibault Meyer
d entity from it like this: > > HttpResponse.create() > .withEntity(HttpEntities.create(contentType, source)) > > Johannes > > On Thursday, April 20, 2017 at 9:56:47 AM UTC+2, Thibault Meyer wrote: >> >> Hi, >> >> I trying akka-http (version 10.x) by creating a small

[akka-user] Re: Chunked response with akka-http 10.x

2017-04-20 Thread Thibault Meyer
d entity from it like this: > > HttpResponse.create() > .withEntity(HttpEntities.create(contentType, source)) > > Johannes > > On Thursday, April 20, 2017 at 9:56:47 AM UTC+2, Thibault Meyer wrote: >> >> Hi, >> >> I trying akka-http (version 10.x) by creating a small API who

[akka-user] Chunked response with akka-http 10.x

2017-04-20 Thread Thibault Meyer
Hi, I trying akka-http (version 10.x) by creating a small API who generate UUID on demand. For a bulk UUID creation (ex: */uuid1/5000* to get 5000 UUID v1), I would like to return a chunked response to avoir building a list of item on memory. >From Play 2.5 I usually using final

[akka-user] Akka HTTP - Can't return completeWithFuture

2017-04-29 Thread Thibault Meyer
Hello, I have a blocking operation that I would like to run on the custom dispatcher. But I can't return completeWithFuture. I'm using the latest version of Akka Http on Java 8. public Route createRoute() { return route( path(PathMatchers.segment("shipment")

Re: [akka-user] Re: Akka HTTP - Can't return completeWithFuture

2017-04-30 Thread Thibault Meyer
s 2 completeXxx methods > > Hope that helps, > Michał > > On 29/04/17 21:56, Thibault Meyer wrote: > > According to > http://doc.akka.io/docs/akka-http/10.0.5/java/http/common/json-support.html > we have to use > > akk

[akka-user] Blocking operation and dispatcher thread

2017-04-30 Thread Thibault Meyer
Hello, what is the best way to proceed with blocking operation ? 1. Rise up the number of thread of the default-dispatcher or change it to fixed size thread pool? or 2. don't touch default values for default-dispatcher and use another dispatcher (eg : my-blocking-dispatcher) with a fixed

[akka-user] Re: Akka HTTP - Can't return completeWithFuture

2017-04-29 Thread Thibault Meyer
() akka.http.javadsl.marshallers.jackson.Jackson.marshaller(ObjectMapper o) Le samedi 29 avril 2017 20:52:12 UTC+2, Thibault Meyer a écrit : > > Hello, > > I have a blocking operation that I would like to run on the custom > dispatcher. But I can't return completeWithFuture. > > I'm using the l

[akka-user] Akka Http how to add charset utf-8 to the content-type header

2017-05-05 Thread Thibault Meyer
Hello, I dont find how to set the content type to "*application/json; charset=UTF-8*" with the *completeOKWithFuture* and Jackson marshaller. Currently, Akka Http return the Content-Type "application/json" without specifying the charset. So in some browsers (like Opera or Chrome) the output

Re: [akka-user] Re: Akka Http how to add charset utf-8 to the content-type header

2017-05-06 Thread Thibault Meyer
Hi Greg, how to do this ? I see no arguments in completeOKWithFuture or Jackson.marshaller() to do this. I'm using Java version of akka-http. Thanks Le samedi 6 mai 2017 00:49:14 UTC+2, Greg Methvin a écrit : > > There is no charset parameter defined for application/json. See >